diff options
author | eug-vs <eug-vs@keemail.me> | 2021-03-14 10:21:31 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-03-14 10:21:31 +0300 |
commit | dfe13c7c061b4b2fd6dfde8e1c3c284d574ad8f2 (patch) | |
tree | ca73517f023596e46d619e59756b1060017443e3 /src/containers/ProductForm.tsx | |
parent | 2c106d1d3f6d59b10ad946e01e8bb3d0df587e40 (diff) | |
download | commercel-ui-dfe13c7c061b4b2fd6dfde8e1c3c284d574ad8f2.tar.gz |
refactor: wrap Input into Field
Diffstat (limited to 'src/containers/ProductForm.tsx')
-rw-r--r-- | src/containers/ProductForm.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
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> ); |