From dfe13c7c061b4b2fd6dfde8e1c3c284d574ad8f2 Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Sun, 14 Mar 2021 10:21:31 +0300
Subject: refactor: wrap Input into Field

---
 src/containers/ProductForm.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/containers/ProductForm.tsx')

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>
   );
-- 
cgit v1.2.3

