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 { BaseFormInputProps } from "../../../../types/utils.ts";
|
||||||
import { FC } from "react";
|
import { FC } from "react";
|
||||||
import { BaseMarketplaceSchema } from "../../../../client";
|
import { BaseMarketplaceSchema } from "../../../../client";
|
||||||
@@ -31,15 +31,15 @@ const MarketplaceAuthDataInput: FC<Props> = (props: Props) => {
|
|||||||
const getOzonInputs = () => {
|
const getOzonInputs = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<TextInput
|
<NumberInput
|
||||||
{...props}
|
{...props}
|
||||||
label={"Client-Id"}
|
label={"Client-Id"}
|
||||||
placeholder={"Введите Client-Id"}
|
placeholder={"Введите Client-Id"}
|
||||||
value={props.value["Client-Id"] || ""}
|
value={props.value["Client-Id"] || undefined}
|
||||||
onChange={value =>
|
onChange={value =>
|
||||||
props.onChange({
|
props.onChange({
|
||||||
...props.value,
|
...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 = () => {
|
const getInputs = () => {
|
||||||
if (props.baseMarketplace.key === BaseMarketplaceType.WILDBERRIES) {
|
if (props.baseMarketplace.key === BaseMarketplaceType.WILDBERRIES) {
|
||||||
|
|||||||
Reference in New Issue
Block a user