From 31a196a76513df809ee91427129926370de551ba Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 14 Mar 2021 13:27:01 +0300 Subject: feat: add useOptions hook --- src/containers/Service/ServiceContext.tsx | 3 ++- src/containers/Service/ServiceForm.tsx | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/containers/Service') diff --git a/src/containers/Service/ServiceContext.tsx b/src/containers/Service/ServiceContext.tsx index 8f23d9d..6c1a760 100644 --- a/src/containers/Service/ServiceContext.tsx +++ b/src/containers/Service/ServiceContext.tsx @@ -1,11 +1,12 @@ import React from 'react'; +import { FormikProps } from 'formik'; export interface ServiceParams { route: string; name: string; nameSingular: string; tableFields: any[]; - Form: React.FC; + Form: React.FC; default: Record; } 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 = () => { - - + children={service.Form} + /> )} ); -- cgit v1.2.3