Fixed sidebar, AuthBox, and modalError

This commit is contained in:
MaxOvs19 committed 2023-03-22 15:33:12 +03:00
1 parent 84e55a0f54
commit 8b8dda215f
5 files changed
+23 -31

No files matched your search

@@ -2,7 +2,7 @@ import React from "react";
import "./modalErrorLogin.scss";
export const ModalErrorLogin = ({ active, setActive }) => {
export const ModalErrorLogin = ({ active, setActive, title }) => {
return (
<div
className={active ? "modal-error active" : "modal-error"}
@@ -13,8 +13,14 @@ export const ModalErrorLogin = ({ active, setActive }) => {
onClick={(e) => e.stopPropagation()}
>
<h2>Ошибка входа</h2>
<p>Введены некоректные данные для входа</p>
<button className="modal-error__content-button">
<p>{title}</p>
<button
className="modal-error__content-button"
onClick={(e) => {
e.preventDefault();
setActive(false);
}}
>
Попробовать еще раз
</button>
<span onClick={() => setActive(false)}></span>