diff options
author | eug-vs <eug-vs@keemail.me> | 2021-03-14 20:04:49 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-03-14 20:04:49 +0300 |
commit | ba55d180f8878d6a0a592fdc9c3e8015399986a3 (patch) | |
tree | 9d90ea6890a2a6ce3e15ac18237d060bda6cb1b7 | |
parent | dd98ff9bae15b5e6244d8ae7d15cd12b179caade (diff) | |
download | commercel-ui-ba55d180f8878d6a0a592fdc9c3e8015399986a3.tar.gz |
fix: type checks
-rw-r--r-- | src/components/Paper.tsx | 2 | ||||
-rw-r--r-- | src/containers/Service/ServiceContext.tsx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/components/Paper.tsx b/src/components/Paper.tsx index b0e5bc4..2d64261 100644 --- a/src/components/Paper.tsx +++ b/src/components/Paper.tsx @@ -1,7 +1,7 @@ import React from 'react'; interface Props { - variant: 'elevation' | 'outlined' + variant?: 'elevation' | 'outlined' } const style = { 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; |