From 062f10a25d43b875d187cf582b2ecf96d075ec26 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 25 Mar 2021 23:09:49 +0300 Subject: refactor: move services to separate folder --- src/containers/Service/ServiceContext.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/containers/Service/ServiceContext.tsx') 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; - export interface ServiceParams { route: string; name: string; nameSingular: string; tableFields: any[]; default: Record; - routes?: Route[]; - Form?: React.FC; + routes?: Record; + actions?: Action[]; + rowLink?: (item: any) => string; + Form?: React.FC>; Panel?: React.FC; } -- cgit v1.2.3