router.js 1.2 KB

123456789101112131415161718192021222324252627
  1. import React from "react";
  2. import { Switch, Route } from "react-router-dom";
  3. import MainPage from "./container/MainPage";
  4. import Form from './components/Auth/index'
  5. import RegistrForm from './components/Auth/registration'
  6. import MainPageStaffInfo from './container/MainPageStaffInfo'
  7. import SearchStaffs from './container/SearchStaffs'
  8. import SearchStaffsInfo from './container/SearchStaffsInfo'
  9. import AddNewStaff from './container/AddNewStaff'
  10. export default () => (
  11. <Switch>
  12. <Route path="/" exact component={()=><MainPage/>} />
  13. <Route path="/auth" exact component={()=><Form/>} />
  14. <Route path="/registration" exact component={()=><RegistrForm/>} />
  15. <Route path="/registration/login" exact component={()=><Form/>} />
  16. <Route path="/staff" exact component={()=><MainPageStaffInfo/>} />
  17. <Route path="/search" exact component={()=><SearchStaffs/>} />
  18. <Route path="/search/Staff" exact component={()=><SearchStaffsInfo/>} />
  19. <Route path="/newStaff" exact component={()=><AddNewStaff/>} />
  20. </Switch>
  21. );
  22. // /Ортопедическое кресло Austin/Рассрочка