guild_front/src/App.js

88 lines
3.9 KiB
JavaScript
Raw Normal View History

2022-05-31 15:14:15 +03:00
import React from 'react'
import {BrowserRouter as Router, Route, Routes, Navigate} from 'react-router-dom';
import AuthForPartners from "./pages/AuthForPartners/AuthForPartners";
import AuthForDevelopers from "./pages/AuthForDevelopers/AuthForDevelopers";
2023-01-18 17:37:52 +03:00
import Home from "./pages/Home/Home";
import Candidate from "./components/Candidate/Candidate";
import Calendar from "./components/Calendar/Calendar";
import ReportForm from "./components/ReportForm/ReportForm";
import {ProfileCalendar} from "./components/ProfileCalendar/ProfileCalendar";
import FormPage from './pages/FormPage/FormPage.js'
import SingleReportPage from './pages/SingleReportPage/SingleReportPage'
import {QuizPage} from './pages/quiz/QuizPage'
import {InterjacentPage} from './pages/quiz/InterjacentPage'
import {QuizTestPage} from './pages/quiz/QuizTestPage'
import {InstructionPage} from './pages/quiz/InstructionPage'
import {ResultPage} from './pages/quiz/ResultPage'
import {Profile} from './pages/Profile/Profile.js'
import {Summary} from './pages/Summary/Summary'
2023-01-23 14:59:57 +03:00
import {ViewReport} from './pages/ViewReport/ViewReport'
2023-02-17 15:19:49 +03:00
import {Tracker} from './pages/Tracker/Tracker'
import {Payouts} from './pages/Payouts/Payouts'
2023-03-20 14:38:52 +03:00
import { PartnerSettings } from "./pages/PartnerSettings/PartnerSettings"
import {PartnerRequests} from './pages/PartnerRequests/PartnerRequests'
import {PartnerAddRequest} from './pages/PartnerAddRequest/PartnerAddRequest'
2023-02-23 14:57:26 +03:00
import {PartnerBid} from './pages/PartnerBid/PartnerBid'
2023-03-23 14:00:34 +03:00
import {PartnerCategories} from "./pages/PartnerСategories/PartnerСategories";
2023-03-20 14:00:10 +03:00
import {PartnerTreaties} from "./pages/PartnerTreaties/PartnerTreaties";
2023-03-23 14:00:34 +03:00
import {PartnerEmployees} from "./pages/PartnerEmployees/PartnerEmployees";
import './fonts/stylesheet.css'
import 'bootstrap/dist/css/bootstrap.min.css'
2021-05-26 13:35:57 +03:00
2023-01-18 17:37:52 +03:00
2022-06-01 19:59:54 +03:00
const App = () => {
return (
<>
<Router>
<Routes>
<Route exact path='/authdev' element={<AuthForDevelopers/>}/>
<Route exact path='/auth' element={<AuthForPartners/>}/>
2023-01-18 17:37:52 +03:00
<Route exact path='/candidate/:id' element={<Candidate/>}/>
<Route exact path='/candidate/:id/form' element={<FormPage/>}/>
<Route path='/:userId/calendar' element={<Calendar/>}/>
<Route exact path='/report' element={<ReportForm/>}/>
<Route path='/report/:id' element={<SingleReportPage/>}/>
<Route exact path='quiz'>
<Route index element={<QuizPage/>}/>
<Route exact path='interjacent' element={<InterjacentPage/>}/>
<Route exact path='test' element={<QuizTestPage/>}/>
<Route exact path='instruction' element={<InstructionPage/>}/>
<Route exact path='result' element={<ResultPage/>}/>
</Route>
<Route exact path='profile'>
<Route index element={<Profile/>}/>
2023-03-27 16:03:24 +03:00
<Route exact path='catalog' element={<Home/>}/>
<Route exact path='calendar' element={<ProfileCalendar/>}/>
<Route exact path='summary' element={<Summary/>}/>
2023-01-23 14:59:57 +03:00
<Route exact path='view' element={<ViewReport/>}/>
2023-02-17 15:19:49 +03:00
<Route exact path='tracker' element={<Tracker/>}/>
<Route exact path='payouts' element={<Payouts/>}/>
2023-03-20 14:38:52 +03:00
<Route exact path='settings' element={<PartnerSettings/>}/>
<Route exact path='requests' element={<PartnerRequests/>}/>
<Route exact path='add-request' element={<PartnerAddRequest/>}/>
2023-02-23 14:57:26 +03:00
<Route exact path='bid' element={<PartnerBid/>}/>
2023-03-23 14:00:34 +03:00
<Route exact path='categories' element={<PartnerCategories/>}/>
2023-03-20 14:00:10 +03:00
<Route exact path='treaties' element={<PartnerTreaties/>}/>
2023-03-23 14:00:34 +03:00
<Route exact path='categories/employees' element={<PartnerEmployees/>}/>
</Route>
2023-02-27 16:50:32 +03:00
<Route path="*" element={<Navigate to="/profile" replace/>}/>
</Routes>
</Router>
</>
2021-08-04 13:04:05 +03:00
)
};
2021-08-04 13:04:05 +03:00
export default App