From ba55d180f8878d6a0a592fdc9c3e8015399986a3 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 14 Mar 2021 20:04:49 +0300 Subject: fix: type checks --- src/containers/Service/ServiceContext.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/containers/Service') 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; default: Record; + Form?: React.FC; } const ServiceContext = React.createContext({ @@ -15,7 +15,7 @@ const ServiceContext = React.createContext({ name: '', nameSingular: '', tableFields: [], - Form: () => null, + default: {}, }); export const ServiceProvider = ServiceContext.Provider; -- cgit v1.2.3