diff --git a/src/components/AuthBox/AuthBox.jsx b/src/components/AuthBox/AuthBox.jsx index 9485f949..1924dd00 100644 --- a/src/components/AuthBox/AuthBox.jsx +++ b/src/components/AuthBox/AuthBox.jsx @@ -12,8 +12,8 @@ import { Loader } from "@components/Common/Loader/Loader"; import ModalErrorLogin from "@components/Modal/ModalErrorLogin/ModalErrorLogin"; import ModalRegistration from "@components/Modal/ModalRegistration/ModalRegistration"; -import authHead from "assets/icons/authHead.svg" -import eyePassword from "assets/icons/passwordIcon.svg" +import authHead from "assets/icons/authHead.svg"; +import eyePassword from "assets/icons/passwordIcon.svg"; import "./authBox.scss"; @@ -28,7 +28,7 @@ export const AuthBox = ({ title }) => { const [error, setError] = useState(null); const [modalError, setModalError] = useState(false); const [modalReg, setModalReg] = useState(false); - const [showPassword, setShowPassword] = useState(false) + const [showPassword, setShowPassword] = useState(false); useEffect(() => { if (!localStorage.getItem("auth_token")) { @@ -75,7 +75,7 @@ export const AuthBox = ({ title }) => { return (
У вас еще нет аккаунта? { - e.preventDefault(); - setModalReg(true); - }} + onClick={(e) => { + e.preventDefault(); + setModalReg(true); + }} > Зарегистрироваться diff --git a/src/components/Common/AuthHeader/AuthHeader.jsx b/src/components/Common/AuthHeader/AuthHeader.jsx index fb201b21..57f4a333 100644 --- a/src/components/Common/AuthHeader/AuthHeader.jsx +++ b/src/components/Common/AuthHeader/AuthHeader.jsx @@ -30,7 +30,9 @@ export const AuthHeader = () => { e.preventDefault(); scrollToForm(); }} - >Кабинет разработчика + > + Кабинет разработчика +