NavBar now shows correct name on login, sign up redirect functional
This commit is contained in:
1 parent
e356515098
commit
bb27a9f49f
2 files changed
+16
-3
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user