From 5f1bf64ed38fdda9143b75f0ab847eebe55eaaaa Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Sat, 20 Mar 2021 17:52:29 +0300
Subject: feat: allow extending Services

---
 src/containers/Service/ServiceContext.tsx | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'src/containers/Service/ServiceContext.tsx')

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>;
 }
-- 
cgit v1.2.3

