summaryrefslogtreecommitdiff
path: root/src/containers/Service/ServiceContext.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-03-25 23:09:49 +0300
committereug-vs <eug-vs@keemail.me>2021-03-25 23:09:49 +0300
commit062f10a25d43b875d187cf582b2ecf96d075ec26 (patch)
treec6b43379325ba22a051827e6a461a8f8fed98402 /src/containers/Service/ServiceContext.tsx
parent77ac1549e2ab5ac68a1a7464ada9be7e2a2aad92 (diff)
downloadcommercel-ui-062f10a25d43b875d187cf582b2ecf96d075ec26.tar.gz
refactor: move services to separate folder
Diffstat (limited to 'src/containers/Service/ServiceContext.tsx')
-rw-r--r--src/containers/Service/ServiceContext.tsx9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/containers/Service/ServiceContext.tsx b/src/containers/Service/ServiceContext.tsx
index 68ff907..75ac0fb 100644
--- a/src/containers/Service/ServiceContext.tsx
+++ b/src/containers/Service/ServiceContext.tsx
@@ -1,21 +1,22 @@
import React from 'react';
import { FormikProps } from 'formik';
+import { Action } from '../Page';
export interface PanelProps {
item: any;
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>;
+ routes?: Record<string, React.FC>;
+ actions?: Action[];
+ rowLink?: (item: any) => string;
+ Form?: React.FC<FormikProps<any>>;
Panel?: React.FC<PanelProps>;
}