From 31a196a76513df809ee91427129926370de551ba Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Sun, 14 Mar 2021 13:27:01 +0300
Subject: feat: add useOptions hook

---
 src/containers/Service/ServiceForm.tsx | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

(limited to 'src/containers/Service/ServiceForm.tsx')

diff --git a/src/containers/Service/ServiceForm.tsx b/src/containers/Service/ServiceForm.tsx
index 62e4521..e2dfef6 100644
--- a/src/containers/Service/ServiceForm.tsx
+++ b/src/containers/Service/ServiceForm.tsx
@@ -35,9 +35,8 @@ const ServiceForm: React.FC = () => {
         <Formik
           initialValues={_.defaults(item, service.default)}
           onSubmit={onSubmit}
-        >
-          <service.Form />
-        </Formik>
+          children={service.Form}
+        />
       )}
     </Page>
   );
-- 
cgit v1.2.3

