diff options
Diffstat (limited to 'src/containers')
-rw-r--r-- | src/containers/ContractorForm.tsx | 8 | ||||
-rw-r--r-- | src/containers/ProductForm.tsx | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/containers/ContractorForm.tsx b/src/containers/ContractorForm.tsx index a67eabe..4e83fae 100644 --- a/src/containers/ContractorForm.tsx +++ b/src/containers/ContractorForm.tsx @@ -1,14 +1,14 @@ import React from 'react'; -import { Form, Field } from 'formik'; +import { Form } from 'formik'; import Input from '../components/Input'; const ContractorForm: React.FC = () => { return ( <Form id="form"> <div className="max-w-lg"> - <Field name="name" label="Название" as={Input} /> - <Field name="vatId" label="УНП" as={Input} /> - <Field name="debt" type="number" label="Долг ($)" as={Input} /> + <Input name="name" label="Название" /> + <Input name="vatId" label="УНП" /> + <Input name="debt" type="number" label="Долг ($)" /> </div> </Form> ); diff --git a/src/containers/ProductForm.tsx b/src/containers/ProductForm.tsx index 4d01881..d99d3c6 100644 --- a/src/containers/ProductForm.tsx +++ b/src/containers/ProductForm.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Form, Field } from 'formik'; +import { Form } from 'formik'; import Input from '../components/Input'; @@ -7,8 +7,8 @@ const ProductForm: React.FC = () => { return ( <Form id="form"> <div className="max-w-lg"> - <Field name="name" label="Название" as={Input} /> - <Field name="price" type="number" label="Цена ($)" as={Input} /> + <Input name="name" label="Название" /> + <Input name="price" type="number" label="Цена ($)" /> </div> </Form> ); |