summaryrefslogtreecommitdiff
path: root/src/containers/Service/ServiceContext.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers/Service/ServiceContext.tsx')
-rw-r--r--src/containers/Service/ServiceContext.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/containers/Service/ServiceContext.tsx b/src/containers/Service/ServiceContext.tsx
index 6c1a760..c035417 100644
--- a/src/containers/Service/ServiceContext.tsx
+++ b/src/containers/Service/ServiceContext.tsx
@@ -6,8 +6,8 @@ export interface ServiceParams {
name: string;
nameSingular: string;
tableFields: any[];
- Form: React.FC<FormikProps>;
default: Record<string, any>;
+ Form?: React.FC<FormikProps>;
}
const ServiceContext = React.createContext<ServiceParams>({
@@ -15,7 +15,7 @@ const ServiceContext = React.createContext<ServiceParams>({
name: '',
nameSingular: '',
tableFields: [],
- Form: () => null,
+ default: {},
});
export const ServiceProvider = ServiceContext.Provider;