feat: client id is number!!!
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user