add empty forms page
This commit is contained in:
@ -2,7 +2,7 @@ import React, { useState } from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
import CardArticle from "@components/CardArticle/CardArticle";
|
||||
import AuthHeader from "@components/Common/AuthHeader/AuthHeader";
|
||||
import { AuthHeader } from "@components/Common/AuthHeader/AuthHeader";
|
||||
import { Footer } from "@components/Common/Footer/Footer";
|
||||
import { ProfileBreadcrumbs } from "@components/ProfileBreadcrumbs/ProfileBreadcrumbs";
|
||||
import SideBar from "@components/SideBar/SideBar";
|
||||
|
@ -5,7 +5,7 @@ import { useNavigate } from "react-router-dom";
|
||||
import { selectAuth } from "@redux/outstaffingSlice";
|
||||
|
||||
import { AuthBox } from "@components/AuthBox/AuthBox";
|
||||
import AuthHeader from "@components/Common/AuthHeader/AuthHeader";
|
||||
import { AuthHeader } from "@components/Common/AuthHeader/AuthHeader";
|
||||
import { Footer } from "@components/Common/Footer/Footer";
|
||||
import SideBar from "@components/SideBar/SideBar";
|
||||
|
||||
@ -18,7 +18,7 @@ import cross from "assets/images/cross.png";
|
||||
|
||||
import "./auth.scss";
|
||||
|
||||
const Auth = () => {
|
||||
export const Auth = () => {
|
||||
const isAuth = useSelector(selectAuth);
|
||||
let navigate = useNavigate();
|
||||
|
||||
@ -92,5 +92,3 @@ const Auth = () => {
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export default Auth;
|
||||
|
@ -6,7 +6,7 @@ import { selectAuth } from "@redux/outstaffingSlice";
|
||||
|
||||
import AuthBlock from "@components/AuthBlock/AuthBlock";
|
||||
import CategoriesItem from "@components/CategoriesItem/CategoriesItem";
|
||||
import AuthHeader from "@components/Common/AuthHeader/AuthHeader";
|
||||
import { AuthHeader } from "@components/Common/AuthHeader/AuthHeader";
|
||||
import { Footer } from "@components/Common/Footer/Footer";
|
||||
import ModalResetPassword from "@components/Modal/ModalResetPassword/ModalResetPassword";
|
||||
import SideBar from "@components/SideBar/SideBar";
|
||||
@ -109,7 +109,7 @@ export const AuthForCandidate = () => {
|
||||
|
||||
return (
|
||||
<div className="auth-candidate">
|
||||
<AuthHeader />
|
||||
<AuthHeader />
|
||||
<div className="container">
|
||||
<AuthBlock
|
||||
resetModal={setModalReset}
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React, { useState } from "react";
|
||||
|
||||
import CardArticle from "@components/CardArticle/CardArticle";
|
||||
import AuthHeader from "@components/Common/AuthHeader/AuthHeader";
|
||||
import { AuthHeader } from "@components/Common/AuthHeader/AuthHeader";
|
||||
import { Footer } from "@components/Common/Footer/Footer";
|
||||
import { ProfileBreadcrumbs } from "@components/ProfileBreadcrumbs/ProfileBreadcrumbs";
|
||||
import SideBar from "@components/SideBar/SideBar";
|
||||
|
@ -2,7 +2,7 @@ import React, { useState } from "react";
|
||||
|
||||
import CatalogPersonCard from "@components/CatalogPersonCard/CatalogPersonCard";
|
||||
import CategoriesItem from "@components/CategoriesItem/CategoriesItem";
|
||||
import AuthHeader from "@components/Common/AuthHeader/AuthHeader";
|
||||
import { AuthHeader } from "@components/Common/AuthHeader/AuthHeader";
|
||||
import { Footer } from "@components/Common/Footer/Footer";
|
||||
import { ProfileBreadcrumbs } from "@components/ProfileBreadcrumbs/ProfileBreadcrumbs";
|
||||
import SideBar from "@components/SideBar/SideBar";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import React from "react";
|
||||
|
||||
import AuthHeader from "@components/Common/AuthHeader/AuthHeader";
|
||||
import { AuthHeader } from "@components/Common/AuthHeader/AuthHeader";
|
||||
import { Footer } from "@components/Common/Footer/Footer";
|
||||
import SideBar from "@components/SideBar/SideBar";
|
||||
|
||||
|
@ -23,7 +23,7 @@ import rectangle from "assets/images/rectangle_secondPage.png";
|
||||
|
||||
import "./formPage.scss";
|
||||
|
||||
const FormPage = () => {
|
||||
export const FormPage = () => {
|
||||
if (localStorage.getItem("role_status") !== "18") {
|
||||
return <Navigate to="/profile" replace />;
|
||||
}
|
||||
@ -101,5 +101,3 @@ const FormPage = () => {
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default FormPage;
|
||||
|
21
src/pages/Forms/Forms.jsx
Normal file
21
src/pages/Forms/Forms.jsx
Normal file
@ -0,0 +1,21 @@
|
||||
import React from "react";
|
||||
|
||||
import { Footer } from "@components/Common/Footer/Footer";
|
||||
import { AuthHeader } from "@components/Common/AuthHeader/AuthHeader";
|
||||
import SideBar from "@components/SideBar/SideBar";
|
||||
|
||||
import "./forms.scss";
|
||||
|
||||
export const Forms = () => {
|
||||
return (
|
||||
<div className="forms">
|
||||
<AuthHeader />
|
||||
<SideBar />
|
||||
<div className="container">
|
||||
<br />
|
||||
<h1>Здесь будут формы</h1>
|
||||
</div>
|
||||
<Footer />
|
||||
</div>
|
||||
);
|
||||
};
|
13
src/pages/Forms/Forms.scss
Normal file
13
src/pages/Forms/Forms.scss
Normal file
@ -0,0 +1,13 @@
|
||||
.forms {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
background: #f1f1f1;
|
||||
|
||||
.container {
|
||||
max-width: 1160px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
}
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
import { useEffect, useState } from "react";
|
||||
import { useNavigate, useParams } from "react-router";
|
||||
|
||||
import AuthHeader from "@components/Common/AuthHeader/AuthHeader";
|
||||
import { AuthHeader } from "@components/Common/AuthHeader/AuthHeader";
|
||||
import { Footer } from "@components/Common/Footer/Footer";
|
||||
import { ProfileBreadcrumbs } from "@components/ProfileBreadcrumbs/ProfileBreadcrumbs";
|
||||
import SideBar from "@components/SideBar/SideBar";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import React from "react";
|
||||
|
||||
import AuthHeader from "@components/Common/AuthHeader/AuthHeader";
|
||||
import { AuthHeader } from "@components/Common/AuthHeader/AuthHeader";
|
||||
import { Footer } from "@components/Common/Footer/Footer";
|
||||
import { FrequentlyAskedQuestionsItem } from "@components/FrequentlyAskedQuestionsItem/FrequentlyAskedQuestionsItem";
|
||||
import { ProfileBreadcrumbs } from "@components/ProfileBreadcrumbs/ProfileBreadcrumbs";
|
||||
|
@ -13,7 +13,7 @@ import Outstaffing from "@components/Outstaffing/Outstaffing";
|
||||
import { ProfileBreadcrumbs } from "@components/ProfileBreadcrumbs/ProfileBreadcrumbs";
|
||||
import { ProfileHeader } from "@components/ProfileHeader/ProfileHeader";
|
||||
|
||||
const Home = () => {
|
||||
export const Home = () => {
|
||||
if (localStorage.getItem("role_status") !== "18") {
|
||||
return <Navigate to="/profile" replace />;
|
||||
}
|
||||
@ -75,5 +75,3 @@ const Home = () => {
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Home;
|
||||
|
@ -183,7 +183,7 @@ export const PartnerSettings = () => {
|
||||
использования персональных данных
|
||||
</span>
|
||||
</div>
|
||||
<div className="partner-settings__report">
|
||||
{/* <div className="partner-settings__report">
|
||||
<h3 className="settings__title">Документы и отчеты</h3>
|
||||
<p className="settings__label">Изменить провадера ЭДО</p>
|
||||
|
||||
@ -221,7 +221,7 @@ export const PartnerSettings = () => {
|
||||
Нажимая "Сохранить", вы соглашаетесь с Правилами обработки и
|
||||
использования персональных данных
|
||||
</span>
|
||||
</div>
|
||||
</div> */}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -25,7 +25,7 @@ export const PassingTests = () => {
|
||||
expiryTimestamp: moment(),
|
||||
autoStart: false,
|
||||
onExpire: () => {
|
||||
navigate("/Quiz");
|
||||
navigate("/quiz");
|
||||
}
|
||||
});
|
||||
|
||||
@ -84,8 +84,8 @@ export const PassingTests = () => {
|
||||
<ProfileBreadcrumbs
|
||||
links={[
|
||||
{ name: "Главная", link: "/profile-candidate" },
|
||||
{ name: "Тестирование", link: "/Quiz" },
|
||||
{ name: "Прохождение тестов", link: "/Quiz/test" }
|
||||
{ name: "Тестирование", link: "quiz" },
|
||||
{ name: "Прохождение тестов", link: "/quiz/test" }
|
||||
]}
|
||||
/>
|
||||
<div className="passing-tests-page__title main-title">
|
||||
|
@ -122,7 +122,7 @@ export const QuizPage = () => {
|
||||
<ProfileBreadcrumbs
|
||||
links={[
|
||||
{ name: "Главная", link: "/profile-candidate" },
|
||||
{ name: "Тестирование", link: "/Quiz" }
|
||||
{ name: "Тестирование", link: "/quiz" }
|
||||
]}
|
||||
/>
|
||||
<div className="quiz-page__title main-title">
|
||||
|
@ -21,7 +21,7 @@ export const QuizReportPage = () => {
|
||||
|
||||
let navigate = useNavigate();
|
||||
if (!test) {
|
||||
navigate("/Quiz");
|
||||
navigate("/quiz");
|
||||
}
|
||||
|
||||
const [testInfo, setTestInfo] = useState({});
|
||||
|
@ -4,7 +4,7 @@ import { Link } from "react-router-dom";
|
||||
import { useFormValidation } from "@hooks/useFormValidation";
|
||||
import { useNotification } from "@hooks/useNotification";
|
||||
|
||||
import AuthHeader from "@components/Common/AuthHeader/AuthHeader";
|
||||
import { AuthHeader } from "@components/Common/AuthHeader/AuthHeader";
|
||||
import { Footer } from "@components/Common/Footer/Footer";
|
||||
import SideBar from "@components/SideBar/SideBar";
|
||||
import StepsForCandidate from "@components/StepsForCandidate/StepsForCandidate";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import React, { useState } from "react";
|
||||
|
||||
import AuthHeader from "@components/Common/AuthHeader/AuthHeader";
|
||||
import { AuthHeader } from "@components/Common/AuthHeader/AuthHeader";
|
||||
import { Footer } from "@components/Common/Footer/Footer";
|
||||
import SideBar from "@components/SideBar/SideBar";
|
||||
|
||||
|
@ -24,7 +24,7 @@ const tasks = [
|
||||
}
|
||||
];
|
||||
|
||||
const SingleReportPage = () => {
|
||||
export const SingleReportPage = () => {
|
||||
const navigate = useNavigate();
|
||||
|
||||
return (
|
||||
@ -108,5 +108,3 @@ const SingleReportPage = () => {
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default SingleReportPage;
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React, { useState } from "react";
|
||||
|
||||
import AuthBlock from "@components/AuthBlock/AuthBlock";
|
||||
import AuthHeader from "@components/Common/AuthHeader/AuthHeader";
|
||||
import { AuthHeader } from "@components/Common/AuthHeader/AuthHeader";
|
||||
import { Footer } from "@components/Common/Footer/Footer";
|
||||
import ModalLayout from "@components/Common/ModalLayout/ModalLayout";
|
||||
import { ModalReset } from "@components/Modal/ModalReset/ModalReset";
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React from "react";
|
||||
import { NavLink } from "react-router-dom";
|
||||
|
||||
import AuthHeader from "@components/Common/AuthHeader/AuthHeader";
|
||||
import { AuthHeader } from "@components/Common/AuthHeader/AuthHeader";
|
||||
import { Footer } from "@components/Common/Footer/Footer";
|
||||
import SideBar from "@components/SideBar/SideBar";
|
||||
|
||||
|
@ -4,7 +4,7 @@ import { Navigate } from "react-router-dom";
|
||||
import { useFormValidation } from "@hooks/useFormValidation";
|
||||
import { useNotification } from "@hooks/useNotification";
|
||||
|
||||
import AuthHeader from "@components/Common/AuthHeader/AuthHeader";
|
||||
import { AuthHeader } from "@components/Common/AuthHeader/AuthHeader";
|
||||
import { Footer } from "@components/Common/Footer/Footer";
|
||||
import ModalLayout from "@components/Common/ModalLayout/ModalLayout";
|
||||
import { ModalTrackerRegistration } from "@components/Modal/ModalTrackerRegistration/ModalTrackerRegistration";
|
||||
|
Reference in New Issue
Block a user