2021-08-04 13:04:05 +03:00
|
|
|
import React, { Suspense, lazy } from 'react'
|
|
|
|
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'
|
|
|
|
import 'bootstrap/dist/css/bootstrap.min.css'
|
|
|
|
import './fonts/stylesheet.css'
|
|
|
|
import { ProtectedRoute } from './components/ProtectedRoute/ProtectedRoute';
|
2021-05-25 14:50:01 +03:00
|
|
|
|
2021-08-04 16:49:33 +03:00
|
|
|
import AuthPageForDevelopers from './pages/AuthPageForDevelopers';
|
|
|
|
import AuthPageForPartners from './pages/AuthPageForPartners';
|
|
|
|
import HomePage from './pages/HomePage';
|
|
|
|
import CandidatePage from './pages/CandidatePage';
|
|
|
|
import CalendarPage from'./pages/CalendarPage';
|
|
|
|
import ReportPage from './pages/ReportFormPage.js';
|
|
|
|
import FormPage from './pages/FormPage.js';
|
2021-05-26 13:35:57 +03:00
|
|
|
|
|
|
|
const App = () => {
|
2021-08-12 12:40:47 +03:00
|
|
|
return (<>
|
|
|
|
<h1>IT Аутстаффинг в России</h1>
|
2021-05-26 13:35:57 +03:00
|
|
|
<Router>
|
2021-08-04 13:04:05 +03:00
|
|
|
<Switch>
|
2021-08-04 18:17:33 +03:00
|
|
|
<Route path='/authdev' exact>
|
2021-07-02 16:02:47 +03:00
|
|
|
<AuthPageForDevelopers />
|
2021-05-31 18:23:25 +03:00
|
|
|
</Route>
|
2021-08-04 18:17:33 +03:00
|
|
|
<Route path='/auth' exact>
|
|
|
|
<AuthPageForPartners />
|
|
|
|
</Route>
|
2021-08-04 13:04:05 +03:00
|
|
|
<ProtectedRoute path='/' exact component={HomePage} />
|
2021-08-16 16:19:50 +03:00
|
|
|
<ProtectedRoute exact path='/candidate/:id' component={CandidatePage} />
|
2021-08-04 13:04:05 +03:00
|
|
|
<ProtectedRoute path='/calendar' component={CalendarPage} />
|
2021-08-16 16:19:50 +03:00
|
|
|
<ProtectedRoute exact path='/candidate/:id/form' component={FormPage} />
|
2021-08-04 13:04:05 +03:00
|
|
|
<ProtectedRoute path='/report' component={ReportPage} />
|
2021-08-04 18:17:33 +03:00
|
|
|
<ProtectedRoute component={()=><div>Page not found</div>} />
|
2021-08-04 13:04:05 +03:00
|
|
|
</Switch>
|
2021-05-26 13:35:57 +03:00
|
|
|
</Router>
|
2021-08-12 12:40:47 +03:00
|
|
|
</>
|
2021-08-04 13:04:05 +03:00
|
|
|
)
|
|
|
|
}
|
2021-05-25 14:50:01 +03:00
|
|
|
|
2021-08-04 13:04:05 +03:00
|
|
|
export default App
|