|
|
|
|
|
|
|
|
import { useLocation } from "react-router-dom"; |
|
|
import { useLocation } from "react-router-dom"; |
|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
|
ADS_PAGE, |
|
|
|
|
|
AD_DETAILS_PAGE, |
|
|
|
|
|
|
|
|
// ADS_PAGE, |
|
|
|
|
|
// AD_DETAILS_PAGE, |
|
|
FORGOT_PASSWORD_PAGE, |
|
|
FORGOT_PASSWORD_PAGE, |
|
|
FORGOT_PASSWORD_CONFIRMATION_PAGE, |
|
|
FORGOT_PASSWORD_CONFIRMATION_PAGE, |
|
|
NOT_FOUND_PAGE, |
|
|
NOT_FOUND_PAGE, |
|
|
|
|
|
|
|
|
BASE_PAGE, |
|
|
BASE_PAGE, |
|
|
RESET_PASSWORD_PAGE, |
|
|
RESET_PASSWORD_PAGE, |
|
|
USERS_PAGE, |
|
|
USERS_PAGE, |
|
|
CANDIDATES_PAGE, |
|
|
|
|
|
|
|
|
// CANDIDATES_PAGE, |
|
|
USER_DETAILS_PAGE, |
|
|
USER_DETAILS_PAGE, |
|
|
CANDIDATES_DETAILS_PAGE, |
|
|
|
|
|
SELECTION_PROCESS_PAGE, |
|
|
|
|
|
SELECTION_PROCESS_OF_APPLICANT_PAGE, |
|
|
|
|
|
PATTERNS_PAGE, |
|
|
|
|
|
PATTERN_DETAILS_PAGE, |
|
|
|
|
|
SCHEDULE_PAGE, |
|
|
|
|
|
STATS_PAGE, |
|
|
|
|
|
|
|
|
// CANDIDATES_DETAILS_PAGE, |
|
|
|
|
|
// SELECTION_PROCESS_PAGE, |
|
|
|
|
|
// SELECTION_PROCESS_OF_APPLICANT_PAGE, |
|
|
|
|
|
// PATTERNS_PAGE, |
|
|
|
|
|
// PATTERN_DETAILS_PAGE, |
|
|
|
|
|
// SCHEDULE_PAGE, |
|
|
|
|
|
// STATS_PAGE, |
|
|
REGISTER_PAGE, |
|
|
REGISTER_PAGE, |
|
|
CREATE_AD_PAGE, |
|
|
|
|
|
|
|
|
// CREATE_AD_PAGE, |
|
|
FILES_PAGE, |
|
|
FILES_PAGE, |
|
|
FILES_VIEW_PAGE, |
|
|
FILES_VIEW_PAGE, |
|
|
} from "./constants/pages"; |
|
|
} from "./constants/pages"; |
|
|
|
|
|
|
|
|
import LoginPage from "./pages/LoginPage/LoginPageMUI"; |
|
|
import LoginPage from "./pages/LoginPage/LoginPageMUI"; |
|
|
import AdsPage from "./pages/AdsPage/AdsPage"; |
|
|
|
|
|
|
|
|
// import AdsPage from "./pages/AdsPage/AdsPage"; |
|
|
import NotFoundPage from "./pages/ErrorPages/NotFoundPage"; |
|
|
import NotFoundPage from "./pages/ErrorPages/NotFoundPage"; |
|
|
import ErrorPage from "./pages/ErrorPages/ErrorPage"; |
|
|
import ErrorPage from "./pages/ErrorPages/ErrorPage"; |
|
|
import ForgotPasswordPage from "./pages/ForgotPasswordPage/ForgotPasswordPageMUI"; |
|
|
import ForgotPasswordPage from "./pages/ForgotPasswordPage/ForgotPasswordPageMUI"; |
|
|
|
|
|
|
|
|
import ForgotPasswordConfirmationPage from "./pages/ForgotPasswordPage/ForgotPasswordConfirmationPageMUI"; |
|
|
import ForgotPasswordConfirmationPage from "./pages/ForgotPasswordPage/ForgotPasswordConfirmationPageMUI"; |
|
|
import ResetPasswordPage from "./pages/ForgotPasswordPage/ResetPasswordPageMUI"; |
|
|
import ResetPasswordPage from "./pages/ForgotPasswordPage/ResetPasswordPageMUI"; |
|
|
import UsersPage from "./pages/UsersPage/UsersPage"; |
|
|
import UsersPage from "./pages/UsersPage/UsersPage"; |
|
|
import CandidatesPage from "./pages/CandidatesPage/CandidatesPage"; |
|
|
|
|
|
import AdDetailsPage from "./pages/AdsPage/AdDetailsPage"; |
|
|
|
|
|
|
|
|
// import CandidatesPage from "./pages/CandidatesPage/CandidatesPage"; |
|
|
|
|
|
// import AdDetailsPage from "./pages/AdsPage/AdDetailsPage"; |
|
|
import UserDetails from "./pages/UsersPage/UserDetails"; |
|
|
import UserDetails from "./pages/UsersPage/UserDetails"; |
|
|
import CandidateDetailsPage from "./pages/CandidatesPage/CandidateDetailsPage"; |
|
|
|
|
|
import SelectionProcessPage from "./pages/SelectionProcessPage/SelectionProcessPage"; |
|
|
|
|
|
import SelectionProcessOfApplicantPage from "./pages/SelectionProcessPage/SelectionProcessOfApplicantPage"; |
|
|
|
|
|
import PatternsPage from "./pages/PatternsPage/PatternsPage"; |
|
|
|
|
|
import PatternDetailsPage from "./pages/PatternsPage/PatternDetailsPage"; |
|
|
|
|
|
import SchedulePage from "./pages/SchedulePage/SchedulePage"; |
|
|
|
|
|
import StatsPage from "./pages/StatsPage/StatsPage"; |
|
|
|
|
|
|
|
|
// import CandidateDetailsPage from "./pages/CandidatesPage/CandidateDetailsPage"; |
|
|
|
|
|
// import SelectionProcessPage from "./pages/SelectionProcessPage/SelectionProcessPage"; |
|
|
|
|
|
// import SelectionProcessOfApplicantPage from "./pages/SelectionProcessPage/SelectionProcessOfApplicantPage"; |
|
|
|
|
|
// import PatternsPage from "./pages/PatternsPage/PatternsPage"; |
|
|
|
|
|
// import PatternDetailsPage from "./pages/PatternsPage/PatternDetailsPage"; |
|
|
|
|
|
// import SchedulePage from "./pages/SchedulePage/SchedulePage"; |
|
|
|
|
|
// import StatsPage from "./pages/StatsPage/StatsPage"; |
|
|
import RegisterPage from "./pages/RegisterPage/RegisterPage"; |
|
|
import RegisterPage from "./pages/RegisterPage/RegisterPage"; |
|
|
import CreateAdPage from "./pages/AdsPage/CreateAdPage"; |
|
|
|
|
|
|
|
|
// import CreateAdPage from "./pages/AdsPage/CreateAdPage"; |
|
|
import FilesPage from "./pages/FilesPage/FilesPage"; |
|
|
import FilesPage from "./pages/FilesPage/FilesPage"; |
|
|
import FilesViewPage from "./pages/FilesPage/FilesViewPage"; |
|
|
import FilesViewPage from "./pages/FilesPage/FilesViewPage"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/> |
|
|
/> |
|
|
<Route exact path={REGISTER_PAGE} component={RegisterPage} /> |
|
|
<Route exact path={REGISTER_PAGE} component={RegisterPage} /> |
|
|
<Route path={RESET_PASSWORD_PAGE} component={ResetPasswordPage} /> |
|
|
<Route path={RESET_PASSWORD_PAGE} component={ResetPasswordPage} /> |
|
|
<PrivateRoute exact path={ADS_PAGE} component={AdsPage} /> |
|
|
|
|
|
<PrivateRoute exact path={AD_DETAILS_PAGE} component={AdDetailsPage} /> |
|
|
|
|
|
|
|
|
{/* <PrivateRoute exact path={ADS_PAGE} component={AdsPage} /> */} |
|
|
|
|
|
{/* <PrivateRoute exact path={AD_DETAILS_PAGE} component={AdDetailsPage} /> */} |
|
|
<PrivateRoute exact path={USER_DETAILS_PAGE} component={UserDetails} /> |
|
|
<PrivateRoute exact path={USER_DETAILS_PAGE} component={UserDetails} /> |
|
|
<PrivateRoute exact path={USERS_PAGE} component={UsersPage} /> |
|
|
<PrivateRoute exact path={USERS_PAGE} component={UsersPage} /> |
|
|
<PrivateRoute exact path={CANDIDATES_PAGE} component={CandidatesPage} /> |
|
|
|
|
|
<PrivateRoute exact path={CREATE_AD_PAGE} component={CreateAdPage} /> |
|
|
|
|
|
|
|
|
{/* <PrivateRoute exact path={CANDIDATES_PAGE} component={CandidatesPage} /> |
|
|
|
|
|
<PrivateRoute exact path={CREATE_AD_PAGE} component={CreateAdPage} /> */} |
|
|
<PrivateRoute exact path={FILES_PAGE} component={FilesPage} /> |
|
|
<PrivateRoute exact path={FILES_PAGE} component={FilesPage} /> |
|
|
<PrivateRoute exact path={FILES_VIEW_PAGE} component={FilesViewPage} /> |
|
|
<PrivateRoute exact path={FILES_VIEW_PAGE} component={FilesViewPage} /> |
|
|
<PrivateRoute |
|
|
|
|
|
|
|
|
{/* <PrivateRoute |
|
|
exact |
|
|
exact |
|
|
path={CANDIDATES_DETAILS_PAGE} |
|
|
path={CANDIDATES_DETAILS_PAGE} |
|
|
component={CandidateDetailsPage} |
|
|
component={CandidateDetailsPage} |
|
|
|
|
|
|
|
|
/> |
|
|
/> |
|
|
<PrivateRoute exact path={PATTERNS_PAGE} component={PatternsPage} /> |
|
|
<PrivateRoute exact path={PATTERNS_PAGE} component={PatternsPage} /> |
|
|
<PrivateRoute exact path={SCHEDULE_PAGE} component={SchedulePage} /> |
|
|
<PrivateRoute exact path={SCHEDULE_PAGE} component={SchedulePage} /> |
|
|
<PrivateRoute exact path={STATS_PAGE} component={StatsPage} /> |
|
|
|
|
|
|
|
|
<PrivateRoute exact path={STATS_PAGE} component={StatsPage} /> */} |
|
|
<Redirect from="*" to={NOT_FOUND_PAGE} /> |
|
|
<Redirect from="*" to={NOT_FOUND_PAGE} /> |
|
|
</Switch> |
|
|
</Switch> |
|
|
); |
|
|
); |