diff options
Diffstat (limited to 'src/containers/Service/ServiceContext.tsx')
-rw-r--r-- | src/containers/Service/ServiceContext.tsx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/containers/Service/ServiceContext.tsx b/src/containers/Service/ServiceContext.tsx index 75ac0fb..0cccc93 100644 --- a/src/containers/Service/ServiceContext.tsx +++ b/src/containers/Service/ServiceContext.tsx @@ -1,6 +1,11 @@ import React from 'react'; import { FormikProps } from 'formik'; -import { Action } from '../Page'; +import { Props as ButtonProps } from '../../components/Button'; +import { Field } from '../../components/ListTable'; + +export interface Action extends ButtonProps { + name: string; +} export interface PanelProps { item: any; @@ -10,9 +15,9 @@ export interface PanelProps { export interface ServiceParams { route: string; name: string; - nameSingular: string; - tableFields: any[]; - default: Record<string, any>; + nameSingular?: string; + tableFields: Field[]; + default?: Record<string, any>; routes?: Record<string, React.FC>; actions?: Action[]; rowLink?: (item: any) => string; |