From c78a09412786d21d1d2f598e372fd17f0d16dbdc Mon Sep 17 00:00:00 2001 From: Mikola Date: Tue, 16 Jan 2024 21:29:24 +0300 Subject: [PATCH] fixes --- .../modalResetPassword.scss | 11 +++++ .../AuthForCandidate/AuthForCandidate.jsx | 46 +++---------------- .../RegistrationForCandidate.js | 6 ++- .../registationForCandidate.scss | 4 ++ 4 files changed, 26 insertions(+), 41 deletions(-) diff --git a/src/components/Modal/ModalResetPassword/modalResetPassword.scss b/src/components/Modal/ModalResetPassword/modalResetPassword.scss index 51c91be6..6aee1da9 100644 --- a/src/components/Modal/ModalResetPassword/modalResetPassword.scss +++ b/src/components/Modal/ModalResetPassword/modalResetPassword.scss @@ -31,6 +31,17 @@ padding: 10px !important; height: 40px !important; margin-bottom: 5px !important; + max-width: 366px; + width: 100%; + border-radius: 8px; + border: none; + background-color: #ffffff; + font-size: 15px; + font-weight: 400; + font-style: normal; + letter-spacing: normal; + text-align: left; + outline: none; } &__arrow { diff --git a/src/pages/AuthForCandidate/AuthForCandidate.jsx b/src/pages/AuthForCandidate/AuthForCandidate.jsx index fb4368fc..65a01e56 100644 --- a/src/pages/AuthForCandidate/AuthForCandidate.jsx +++ b/src/pages/AuthForCandidate/AuthForCandidate.jsx @@ -1,12 +1,8 @@ -import React, { useEffect, useRef, useState } from "react"; -import { useDispatch, useSelector } from "react-redux"; +import React, { useEffect, useState } from "react"; +import { useSelector } from "react-redux"; import { useNavigate } from "react-router-dom"; -import { loading, selectIsLoading } from "@redux/loaderSlice"; -import { auth, selectAuth, setUserInfo } from "@redux/outstaffingSlice"; -import { setRole } from "@redux/roleSlice"; - -import { apiRequest } from "@api/request"; +import { selectAuth } from "@redux/outstaffingSlice"; import AuthBlock from "@components/AuthBlock/AuthBlock"; import CategoriesItem from "@components/CategoriesItem/CategoriesItem"; @@ -14,6 +10,7 @@ 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"; +import ModalResetPassword from "@components/Modal/ModalResetPassword/ModalResetPassword"; import arrowBtn from "assets/icons/arrows/arrowRight.svg"; import AdminImg from "assets/images/partnerProfile/PersonalAdmin.svg"; @@ -24,17 +21,14 @@ import FrontendImg from "assets/images/partnerProfile/PersonalFrontend.svg"; import ManageImg from "assets/images/partnerProfile/PersonalMng.svg"; import SmmImg from "assets/images/partnerProfile/PersonalSMM.svg"; import TestImg from "assets/images/partnerProfile/PersonalTesters.svg"; -import authImg from "assets/images/partnerProfile/authCandidateFormImg.png"; import BackEndImg from "assets/images/partnerProfile/personalBackEnd.svg"; import "./authForCandidate.scss"; export const AuthForCandidate = () => { - const isLoading = useSelector(selectIsLoading); - const ref = useRef(); - const dispatch = useDispatch(); const isAuth = useSelector(selectAuth); let navigate = useNavigate(); + const [modalResetOpen, setModalReset] = useState(false); const getToken = localStorage.getItem("auth_token"); const [personalInfoItems] = useState([ @@ -113,39 +107,12 @@ export const AuthForCandidate = () => { } }, [getToken]); - // const submitHandler = () => { - // let formData = new FormData(ref.current); - // if (!isLoading) { - // dispatch(loading(true)); - // apiRequest("/user/login", { - // method: "POST", - // data: formData, - // }).then((res) => { - // if (!res.access_token) { - // dispatch(loading(false)); - // } else { - // localStorage.setItem("auth_token", res.access_token); - // localStorage.setItem("id", res.id); - // localStorage.setItem("cardId", res.card_id); - // localStorage.setItem("role_status", res.status); - // localStorage.setItem( - // "access_token_expired_at", - // res.access_token_expired_at - // ); - // dispatch(auth(true)); - // dispatch(setUserInfo(res)); - // dispatch(loading(false)); - // dispatch(setRole("ROLE_PARTNER")); - // } - // }); - // } - // }; - return (
{

Java PHP Python C# React Vue.js NodeJs Golang Ruby JavaScript

-
+ img -
+
{/* форма регистрации */}