diff --git a/src/components/AuthBox/AuthBox.jsx b/src/components/AuthBox/AuthBox.jsx index 8ebf1394..5b90d272 100644 --- a/src/components/AuthBox/AuthBox.jsx +++ b/src/components/AuthBox/AuthBox.jsx @@ -10,7 +10,6 @@ import { apiRequest } from "@api/request"; import { Loader } from "@components/Common/Loader/Loader"; import ModalErrorLogin from "@components/Modal/ModalErrorLogin/ModalErrorLogin"; -import ModalRegistration from "@components/Modal/ModalRegistration/ModalRegistration"; import ModalResetPassword from "@components/Modal/ModalResetPassword/ModalResetPassword"; import authHead from "assets/icons/authHead.svg"; @@ -30,7 +29,6 @@ export const AuthBox = ({ title }) => { const [error, setError] = useState(null); const [modalError, setModalError] = useState(false); const [modalReset, setModalReset] = useState(false); - const [modalReg, setModalReg] = useState(false); const [showPassword, setShowPassword] = useState(false); useEffect(() => { @@ -128,19 +126,7 @@ export const AuthBox = ({ title }) => { Восстановить пароль - -

- У вас ещё нет аккаунта?   - { - e.preventDefault(); - setModalReg(true); - }} - > - Зарегистрироваться - -

); diff --git a/src/components/Common/AuthHeader/AuthHeader.jsx b/src/components/Common/AuthHeader/AuthHeader.jsx index 2311164d..8472166c 100644 --- a/src/components/Common/AuthHeader/AuthHeader.jsx +++ b/src/components/Common/AuthHeader/AuthHeader.jsx @@ -4,6 +4,7 @@ import { Link, NavLink } from "react-router-dom"; import { BurgerButton } from "@components/BurgerMenu/burgerButton"; import { BurgerMenu } from "@components/BurgerMenu/burgerMenu"; +import ModalAuth from "@components/Modal/ModalAuth/ModalAuth"; import ModalRegistration from "@components/Modal/ModalRegistration/ModalRegistration"; import authIcon from "assets/icons/authIcon.svg"; @@ -13,11 +14,13 @@ import "./authHeader.scss"; export const AuthHeader = () => { const [actionMenu, setActionMenu] = useState(false); const [modalReg, setModalReg] = useState(false); + const [modalAuth, setModalAuth] = useState(false); return (
+
@@ -47,8 +50,14 @@ export const AuthHeader = () => {
-