summaryrefslogtreecommitdiff
path: root/src/containers/Service/Service.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers/Service/Service.tsx')
-rw-r--r--src/containers/Service/Service.tsx25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/containers/Service/Service.tsx b/src/containers/Service/Service.tsx
deleted file mode 100644
index b527531..0000000
--- a/src/containers/Service/Service.tsx
+++ /dev/null
@@ -1,25 +0,0 @@
-import React, { useContext } from 'react';
-import { Route, Switch, useRouteMatch } from 'react-router-dom';
-import _ from 'lodash';
-import ServiceList from './ServiceList';
-import ServiceItem from './ServiceItem';
-import ServiceContext from './ServiceContext';
-
-
-const Service: React.FC = () => {
- const { path } = useRouteMatch();
- const service = useContext(ServiceContext);
-
- return (
- <Switch>
- <Route exact path={path} component={ServiceList} />
- <Route path={`${path}/add`} component={ServiceItem} />
- {_.map(service.routes, (component, route) => (
- <Route path={`${path}/${route}`} component={component} key={route} />
- ))}
- <Route path={`${path}/:id`} component={ServiceItem} />
- </Switch>
- );
-};
-
-export default Service;