temp image upload
This commit is contained in:
@@ -4,6 +4,7 @@ import {useForm} from "@mantine/form";
|
||||
import {BaseProduct, CreateProductRequest} from "../../types.ts";
|
||||
import {ProductSchema} from "../../../../client";
|
||||
import BarcodeTemplateSelect from "../../../../components/Selects/BarcodeTemplateSelect/BarcodeTemplateSelect.tsx";
|
||||
import ImageDropzone from "../../../../components/ImageDropzone/ImageDropzone.tsx";
|
||||
|
||||
type CreateProps = {
|
||||
clientId: number;
|
||||
@@ -72,7 +73,6 @@ const CreateProductModal = ({
|
||||
{...form.getInputProps('barcodeTemplate')}
|
||||
/>
|
||||
</Fieldset>
|
||||
|
||||
<Fieldset legend={"Дополнительные характеристики"}>
|
||||
<TextInput
|
||||
placeholder={"Введите бренд"}
|
||||
@@ -99,6 +99,11 @@ const CreateProductModal = ({
|
||||
label={"Доп. информация"}
|
||||
{...form.getInputProps('additionalInfo')} />
|
||||
</Fieldset>
|
||||
<Fieldset legend={"Изображение"}>
|
||||
|
||||
<ImageDropzone onDrop={(data) => {
|
||||
}}/>
|
||||
</Fieldset>
|
||||
<Flex justify={"flex-end"} mt={rem(5)} gap={rem(10)}>
|
||||
<Button onClick={() => onCancelClick()} variant={"subtle"}>Отменить</Button>
|
||||
{isEditProps ?
|
||||
|
||||
Reference in New Issue
Block a user