mirror of
https://github.com/bubblecup-12/VogelSocialMedia.git
synced 2025-07-07 19:18:51 +00:00
add redirects to footer
This commit is contained in:
parent
649c961178
commit
9be66a0a2f
3 changed files with 28 additions and 29 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue