summaryrefslogtreecommitdiff
path: root/src/containers/Service/ServiceContext.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-03-20 17:52:29 +0300
committereug-vs <eug-vs@keemail.me>2021-03-20 17:52:29 +0300
commit5f1bf64ed38fdda9143b75f0ab847eebe55eaaaa (patch)
tree92ca75a3eb1df3b753566dc6ca148360d6e0d06b /src/containers/Service/ServiceContext.tsx
parent839c9ccc0e12b7d15611df72baf9acaea19e8480 (diff)
downloadcommercel-ui-5f1bf64ed38fdda9143b75f0ab847eebe55eaaaa.tar.gz
feat: allow extending Services
Diffstat (limited to 'src/containers/Service/ServiceContext.tsx')
-rw-r--r--src/containers/Service/ServiceContext.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/containers/Service/ServiceContext.tsx b/src/containers/Service/ServiceContext.tsx
index f9e1605..68ff907 100644
--- a/src/containers/Service/ServiceContext.tsx
+++ b/src/containers/Service/ServiceContext.tsx
@@ -6,12 +6,15 @@ export interface PanelProps {
mutate: (item: any) => void;
}
+type Route = Record<string, React.FC>;
+
export interface ServiceParams {
route: string;
name: string;
nameSingular: string;
tableFields: any[];
default: Record<string, any>;
+ routes?: Route[];
Form?: React.FC<FormikProps>;
Panel?: React.FC<PanelProps>;
}