Fixed styles

This commit is contained in:
MaxOvs19
2023-03-14 18:49:45 +03:00
parent 021c07f0c6
commit cc2b0f144a
6 changed files with 472 additions and 491 deletions

View File

@ -21,7 +21,7 @@ import withReactContent from "sweetalert2-react-content";
const SweetAlert = withReactContent(Swal);
export const AuthBox = ({ title, altTitle, roleChangeLink }) => {
export const AuthBox = ({ title }) => {
const dispatch = useDispatch();
const ref = useRef();
const navigate = useNavigate();
@ -127,11 +127,13 @@ export const AuthBox = ({ title, altTitle, roleChangeLink }) => {
{isLoading ? <Loader /> : "Войти"}
</button>
<Link to={roleChangeLink}>
<button className="auth-box__form-btn--role auth-box__auth-link">
{altTitle}
</button>
</Link>
{/* TODO: при клике отправлять на форму/модалку/страницу регистрации */}
<button
className="auth-box__form-btn--role auth-box__auth-link"
onClick={(e) => e.preventDefault()}
>
Регистрация
</button>
</div>
</form>
</div>