|
@@ -7,7 +7,8 @@ import Form from './components/Auth/index'
|
|
|
import RegistrForm from './components/Auth/registration'
|
|
|
import MainPageStaffInfo from './container/MainPageStaffInfo'
|
|
|
|
|
|
-import SearchStaffs from './container/SearchStaffs'
|
|
|
+import SearchStaffs from './container/SearchStaff'
|
|
|
+
|
|
|
|
|
|
import SearchStaffsInfo from './container/SearchStaffsInfo'
|
|
|
|
|
@@ -18,16 +19,14 @@ export default () => (
|
|
|
|
|
|
<Header/>
|
|
|
<Switch>
|
|
|
- <Route path="/" exact component={()=><MainPage/>} />
|
|
|
+ <Route path="/" exact component={MainPage} />
|
|
|
<Route path="/auth" exact component={()=><Form/>} />
|
|
|
<Route path="/registration" exact component={()=><RegistrForm/>} />
|
|
|
- <Route path="/staff" exact component={()=><MainPageStaffInfo/>} />
|
|
|
- <Route path="/search" exact component={()=><SearchStaffs/>} />
|
|
|
- <Route path="/search/Staff" exact component={()=><SearchStaffsInfo/>} />
|
|
|
- <Route path="/newStaff" exact component={()=><AddNewStaff/>} />
|
|
|
+ <Route path="/staff/:id" exact component={MainPageStaffInfo} />
|
|
|
+ <Route path="/search/:title" exact component={SearchStaffs} />
|
|
|
+ <Route path="/search/Staff/:id" exact component={SearchStaffsInfo} />
|
|
|
+ <Route path="/newStaff" exact component={AddNewStaff} />
|
|
|
|
|
|
</Switch>
|
|
|
</div>
|
|
|
);
|
|
|
-
|
|
|
-// /Ортопедическое кресло Austin/Рассрочка
|