diff options
Diffstat (limited to 'src/containers/Service')
-rw-r--r-- | src/containers/Service/ServiceContext.tsx | 3 | ||||
-rw-r--r-- | src/containers/Service/ServiceForm.tsx | 5 |
2 files changed, 4 insertions, 4 deletions
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<any>; + Form: React.FC<FormikProps>; default: Record<string, any>; } 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> ); |