add redirects to footer

This commit is contained in:
Kai Ritthaler 2025-06-20 16:30:31 +02:00 committed by BlankAccountsUsername
parent 649c961178
commit 9be66a0a2f
3 changed files with 28 additions and 29 deletions

View file

@ -1,5 +1,5 @@
import "./loginAndSignUpPage.css";
import { useState } from "react";
import { useEffect, useState } from "react";
import axios from "axios";
type FormData = {
@ -14,6 +14,9 @@ function LoginAndSignUpPage({ signupProp }: { signupProp: boolean }) {
error: String;
details: { message: string }[];
}>();
useEffect(() => {
setSignup(signupProp);
}, [signupProp]);
const toggleLogin = (event: React.MouseEvent<HTMLElement>) => {
event.preventDefault();
setErrorMessages(undefined);