NavBar now shows correct name on login, sign up redirect functional

This commit is contained in:
Alex Holliday committed 2024-06-24 13:51:11 -07:00
1 parent e356515098
commit bb27a9f49f
2 files changed
+16 -3

No files matched your search

+11 -1
View File
@@ -80,6 +80,9 @@ const Login = () => {
setForm(newForm);
};
const handleSignupClick = () => {
navigate("/register");
};
return (
<div className="login-page">
<BackgroundPattern></BackgroundPattern>
@@ -137,7 +140,14 @@ const Login = () => {
<div className="login-form-v3-spacing" />
<div className="new-account-option">
Don’t have an account?
<span className="new-account-option-span">Sign up</span>
<span
onClick={() => {
navigate("/register");
}}
className="new-account-option-span"
>
Sign up
</span>
</div>
</form>
</div>