From 062f10a25d43b875d187cf582b2ecf96d075ec26 Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
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<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>;
 }
 
-- 
cgit v1.2.3

