guild_front/src/App.js

73 lines
2.7 KiB
JavaScript
Raw Normal View History

2022-05-31 15:14:15 +03:00
import React from 'react'
2021-08-04 13:04:05 +03:00
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'
import 'bootstrap/dist/css/bootstrap.min.css'
import './fonts/stylesheet.css'
2022-06-01 19:59:54 +03:00
import { ProtectedRoute } from './components/ProtectedRoute/ProtectedRoute'
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'
2022-12-26 15:12:01 +03:00
import ProfileCalendarPage from './pages/ProfileCalendarPage.js'
import FormPage from './pages/FormPage.js'
import SingleReportPage from './pages/SingleReportPage'
2022-05-27 14:39:05 +03:00
import { QuizPage } from './pages/quiz/QuizPage'
import { InterjacentPage } from './pages/quiz/InterjacentPage'
import { QuizTestPage } from './pages/quiz/QuizTestPage'
import { InstructionPage } from './pages/quiz/InstructionPage'
2022-05-31 15:14:15 +03:00
import { ResultPage } from './pages/quiz/ResultPage'
2022-12-26 15:12:01 +03:00
import { Profile } from './pages/Profile.js'
2023-01-09 17:47:04 +03:00
import { Summary } from './pages/Summary'
2021-05-26 13:35:57 +03:00
2022-06-01 19:59:54 +03:00
const App = () => {
return (
<>
<h1>IT Аутстаффинг в России</h1>
<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-17 13:05:13 +03:00
<ProtectedRoute exact path='/' component={HomePage} />
<ProtectedRoute
exact
path='/candidate/:id'
component={CandidatePage}
/>
2021-11-30 17:00:58 +03:00
<ProtectedRoute path='/:userId/calendar' component={CalendarPage} />
<ProtectedRoute
exact
path='/candidate/:id/form'
component={FormPage}
/>
<ProtectedRoute exact path='/report' component={ReportPage} />
<ProtectedRoute path='/report/:id' component={SingleReportPage} />
2022-12-26 15:12:01 +03:00
<ProtectedRoute path='/ProfileCalendar' component={ProfileCalendarPage} />
2022-05-27 14:39:05 +03:00
<ProtectedRoute path='/quiz' component={QuizPage} />
2022-05-31 15:14:15 +03:00
<ProtectedRoute
path='/quiz-interjacent'
component={InterjacentPage}
/>
2022-05-27 14:39:05 +03:00
<ProtectedRoute path='/quiz-test' component={QuizTestPage} />
2022-05-31 15:14:15 +03:00
<ProtectedRoute
path='/quiz-instruction'
component={InstructionPage}
/>
2022-12-26 15:12:01 +03:00
<ProtectedRoute path='/profile' component={Profile} />
2023-01-09 17:47:04 +03:00
<ProtectedRoute path='/summary' component={Summary} />
2022-05-27 14:39:05 +03:00
<ProtectedRoute path='/quiz-result' component={ResultPage} />
<ProtectedRoute component={() => <div>Page not found</div>} />
2021-08-04 13:04:05 +03:00
</Switch>
</Router>
</>
2021-08-04 13:04:05 +03:00
)
}
2021-08-04 13:04:05 +03:00
export default App