diff options
Diffstat (limited to 'src/containers/Service/Service.tsx')
-rw-r--r-- | src/containers/Service/Service.tsx | 6 |
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> ); }; |