feat: client id is number!!!

This commit is contained in:
2025-03-20 16:24:46 +03:00
parent d134abd01a
commit ad09103e14

View File

@@ -1,4 +1,4 @@
import { TextInput } from "@mantine/core";
import { NumberInput, TextInput } from "@mantine/core";
import { BaseFormInputProps } from "../../../../types/utils.ts";
import { FC } from "react";
import { BaseMarketplaceSchema } from "../../../../client";
@@ -31,15 +31,15 @@ const MarketplaceAuthDataInput: FC<Props> = (props: Props) => {
const getOzonInputs = () => {
return (
<>
<TextInput
<NumberInput
{...props}
label={"Client-Id"}
placeholder={"Введите Client-Id"}
value={props.value["Client-Id"] || ""}
value={props.value["Client-Id"] || undefined}
onChange={value =>
props.onChange({
...props.value,
"Client-Id": value.target.value,
"Client-Id": value.toString(),
})
}
/>
@@ -58,7 +58,8 @@ const MarketplaceAuthDataInput: FC<Props> = (props: Props) => {
</>
);
};
const getYandexMarketInputs = () => {};
const getYandexMarketInputs = () => {
};
const getInputs = () => {
if (props.baseMarketplace.key === BaseMarketplaceType.WILDBERRIES) {