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.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/containers/Service/Service.tsx b/src/containers/Service/Service.tsx
index 3a7cbee..162fce0 100644
--- a/src/containers/Service/Service.tsx
+++ b/src/containers/Service/Service.tsx
@@ -1,7 +1,7 @@
import React from 'react';
import { Route, Switch, useRouteMatch } from 'react-router-dom';
import ServiceList from './ServiceList';
-import ServiceForm from './ServiceForm';
+import ServiceItem from './ServiceItem';
const Service: React.FC = () => {
@@ -10,8 +10,8 @@ const Service: React.FC = () => {
return (
<Switch>
<Route exact path={path} component={ServiceList} />
- <Route path={`${path}/add`} component={ServiceForm} />
- <Route path={`${path}/edit/:id`} component={ServiceForm} />
+ <Route path={`${path}/add`} component={ServiceItem} />
+ <Route path={`${path}/:id`} component={ServiceItem} />
</Switch>
);
};