small fixes
This commit is contained in:
parent
f180586eb3
commit
882bdfcc24
904
package-lock.json
generated
904
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -143,9 +143,6 @@ export const ProfileHeader = () => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className={active ? "auth-body active" : "auth-body"}>
|
<div className={active ? "auth-body active" : "auth-body"}>
|
||||||
{/* <div className="auth-body__title">
|
|
||||||
<img src={ITguild}></img>
|
|
||||||
</div> */}
|
|
||||||
<nav className="auth-body__navigation">
|
<nav className="auth-body__navigation">
|
||||||
<div className="profile-header__personal-info">
|
<div className="profile-header__personal-info">
|
||||||
<h3 className="profile-header__personal-info-name">
|
<h3 className="profile-header__personal-info-name">
|
||||||
|
@ -99,7 +99,7 @@ export const useFormValidation = (
|
|||||||
setLoader(false);
|
setLoader(false);
|
||||||
if ("errors" in data) {
|
if ("errors" in data) {
|
||||||
return showNotificationError(
|
return showNotificationError(
|
||||||
"Аккаунт с таким логином или email уже существуе"
|
"Аккаунт с таким логином или email уже существует"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (!data.id) {
|
if (!data.id) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { useSelector } from "react-redux";
|
import { useSelector } from "react-redux";
|
||||||
import { Link, Navigate } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
|
|
||||||
import { getPartnerEmployees } from "@redux/outstaffingSlice";
|
import { getPartnerEmployees } from "@redux/outstaffingSlice";
|
||||||
|
|
||||||
@ -16,12 +16,7 @@ import "./partnerEmployees.scss";
|
|||||||
|
|
||||||
export const PartnerEmployees = () => {
|
export const PartnerEmployees = () => {
|
||||||
const partnerEmployees = useSelector(getPartnerEmployees);
|
const partnerEmployees = useSelector(getPartnerEmployees);
|
||||||
// if (
|
|
||||||
// localStorage.getItem("role_status") !== "18" ||
|
|
||||||
// !partnerEmployees.length
|
|
||||||
// ) {
|
|
||||||
// return <Navigate to="/profile/categories" replace />;
|
|
||||||
// }
|
|
||||||
return (
|
return (
|
||||||
<div className="partner-employees">
|
<div className="partner-employees">
|
||||||
<ProfileHeader />
|
<ProfileHeader />
|
||||||
|
@ -139,7 +139,6 @@
|
|||||||
&__body {
|
&__body {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: space-around;
|
|
||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ import { Navigation } from "@components/Navigation/Navigation";
|
|||||||
import { ProfileBreadcrumbs } from "@components/ProfileBreadcrumbs/ProfileBreadcrumbs";
|
import { ProfileBreadcrumbs } from "@components/ProfileBreadcrumbs/ProfileBreadcrumbs";
|
||||||
import { ProfileHeader } from "@components/ProfileHeader/ProfileHeader";
|
import { ProfileHeader } from "@components/ProfileHeader/ProfileHeader";
|
||||||
|
|
||||||
import paymentIcon from "assets/icons/paymentIcon.png";
|
// import paymentIcon from "assets/icons/paymentIcon.png";
|
||||||
import settingIcon from "assets/icons/settingIcon.png";
|
import settingIcon from "assets/icons/settingIcon.png";
|
||||||
import summaryIcon from "assets/icons/summaryIcon.png";
|
import summaryIcon from "assets/icons/summaryIcon.png";
|
||||||
import timerIcon from "assets/icons/timerIcon.png";
|
import timerIcon from "assets/icons/timerIcon.png";
|
||||||
@ -100,17 +100,10 @@ export const Profile = () => {
|
|||||||
<div className="container">
|
<div className="container">
|
||||||
<ProfileBreadcrumbs links={[{ name: "Главная", link: "/profile" }]} />
|
<ProfileBreadcrumbs links={[{ name: "Главная", link: "/profile" }]} />
|
||||||
<h2 className="profile__title">
|
<h2 className="profile__title">
|
||||||
{user === "developer" ? (
|
<span>
|
||||||
<span>
|
<p>Добрый день, </p>
|
||||||
<p>Добрый день, </p>
|
{profileInfo?.fio || profileInfo?.username}
|
||||||
{profileInfo?.fio || profileInfo?.username}
|
</span>
|
||||||
</span>
|
|
||||||
) : (
|
|
||||||
<span>
|
|
||||||
<p>Добрый день, </p>
|
|
||||||
{profileInfo?.fio || profileInfo?.username}
|
|
||||||
</span>
|
|
||||||
)}
|
|
||||||
</h2>
|
</h2>
|
||||||
<div className="summary__info">
|
<div className="summary__info">
|
||||||
<div className="summary__person">
|
<div className="summary__person">
|
||||||
@ -122,14 +115,11 @@ export const Profile = () => {
|
|||||||
alt="avatar"
|
alt="avatar"
|
||||||
/>
|
/>
|
||||||
<p className="summary__name">
|
<p className="summary__name">
|
||||||
{user === "developer" ? (
|
<span>
|
||||||
<span>
|
{profileInfo?.fio || profileInfo?.username},
|
||||||
{profileInfo?.fio || profileInfo?.username},{" "}
|
{user === "developer" &&
|
||||||
{profileInfo?.specification} разработчик
|
` ${profileInfo?.specification} разработчик`}
|
||||||
</span>
|
</span>
|
||||||
) : (
|
|
||||||
<span>{profileInfo?.fio || profileInfo?.username}</span>
|
|
||||||
)}
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,7 +11,6 @@ import { Loader } from "@components/Common/Loader/Loader";
|
|||||||
import { Navigation } from "@components/Navigation/Navigation";
|
import { Navigation } from "@components/Navigation/Navigation";
|
||||||
import { ProfileBreadcrumbs } from "@components/ProfileBreadcrumbs/ProfileBreadcrumbs";
|
import { ProfileBreadcrumbs } from "@components/ProfileBreadcrumbs/ProfileBreadcrumbs";
|
||||||
import { ProfileHeader } from "@components/ProfileHeader/ProfileHeader";
|
import { ProfileHeader } from "@components/ProfileHeader/ProfileHeader";
|
||||||
// import { HeadBottom } from "@components/features/Candidate-lk/HeadBottom";
|
|
||||||
import { AlertResult } from "@components/features/quiz/AlertResult";
|
import { AlertResult } from "@components/features/quiz/AlertResult";
|
||||||
import { QuizReport } from "@components/features/quiz/QuizReport";
|
import { QuizReport } from "@components/features/quiz/QuizReport";
|
||||||
|
|
||||||
@ -41,7 +40,6 @@ export const QuizReportPage = () => {
|
|||||||
<div className="quiz-report-page">
|
<div className="quiz-report-page">
|
||||||
<ProfileHeader />
|
<ProfileHeader />
|
||||||
<Navigation />
|
<Navigation />
|
||||||
{/*<HeadBottom />*/}
|
|
||||||
<div className="quiz-report-page__container">
|
<div className="quiz-report-page__container">
|
||||||
<ProfileBreadcrumbs
|
<ProfileBreadcrumbs
|
||||||
links={[
|
links={[
|
||||||
|
@ -81,7 +81,6 @@ export const RegistrationForCandidate = () => {
|
|||||||
<img src={arrowBtn} alt="img" />
|
<img src={arrowBtn} alt="img" />
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
{/* форма регистрации */}
|
|
||||||
<form
|
<form
|
||||||
className="registration-candidate__form"
|
className="registration-candidate__form"
|
||||||
onSubmit={handleSubmit}
|
onSubmit={handleSubmit}
|
||||||
|
@ -211,8 +211,6 @@ const Statistics = () => {
|
|||||||
<p className="person-type">
|
<p className="person-type">
|
||||||
{person.role ? person.role : "-"}
|
{person.role ? person.role : "-"}
|
||||||
</p>
|
</p>
|
||||||
{/* <span className="status status-active"> */}
|
|
||||||
|
|
||||||
<span
|
<span
|
||||||
className={
|
className={
|
||||||
person.status
|
person.status
|
||||||
|
@ -3,8 +3,6 @@ import React, { useState } from "react";
|
|||||||
import AuthBlock from "@components/AuthBlock/AuthBlock";
|
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 { Footer } from "@components/Common/Footer/Footer";
|
||||||
import ModalLayout from "@components/Common/ModalLayout/ModalLayout";
|
|
||||||
import { ModalReset } from "@components/Modal/ModalReset/ModalReset";
|
|
||||||
import ModalResetPassword from "@components/Modal/ModalResetPassword/ModalResetPassword";
|
import ModalResetPassword from "@components/Modal/ModalResetPassword/ModalResetPassword";
|
||||||
import SideBar from "@components/SideBar/SideBar";
|
import SideBar from "@components/SideBar/SideBar";
|
||||||
|
|
||||||
@ -35,11 +33,6 @@ export const TrackerAuth = () => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<ModalResetPassword active={modalResetOpen} setActive={setModalReset} />
|
<ModalResetPassword active={modalResetOpen} setActive={setModalReset} />
|
||||||
{/*{modalResetOpen && (*/}
|
|
||||||
{/* <ModalLayout active={modalResetOpen} setActive={setModalReset}>*/}
|
|
||||||
{/* <ModalReset setModalReset={setModalReset} />*/}
|
|
||||||
{/* </ModalLayout>*/}
|
|
||||||
{/*)}*/}
|
|
||||||
</div>
|
</div>
|
||||||
<Footer />
|
<Footer />
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user