From ee490bef8a3c3f88be84b0de8c6e408bfb0994bc Mon Sep 17 00:00:00 2001 From: BFlat Date: Sun, 24 Jul 2022 15:36:49 +0100 Subject: [PATCH] login/signup page fixes --- .../fakeyou/src/v2/view/login/LoginPage.tsx | 42 ++++++--- .../fakeyou/src/v2/view/signup/SignupPage.tsx | 93 +++++++++++++------ 2 files changed, 92 insertions(+), 43 deletions(-) diff --git a/packages/fakeyou/src/v2/view/login/LoginPage.tsx b/packages/fakeyou/src/v2/view/login/LoginPage.tsx index 1fe4dce70d..82d45103bb 100644 --- a/packages/fakeyou/src/v2/view/login/LoginPage.tsx +++ b/packages/fakeyou/src/v2/view/login/LoginPage.tsx @@ -78,7 +78,7 @@ function LoginPage(props: Props) {
Login Error: {errorMessage}
- ) + ); } else { errorWarning = (
@@ -92,36 +92,49 @@ function LoginPage(props: Props) { return (

Login

- + {errorWarning} - +
- +
{/*

*/}
- +
- +
{/*

*/}
- +
- - - + +
); @@ -131,7 +144,7 @@ function LoginPage(props: Props) {
-
+

Login

{errorWarning} @@ -177,10 +190,9 @@ function LoginPage(props: Props) { Login

- Don’t have an account? -   - Create an account now. diff --git a/packages/fakeyou/src/v2/view/signup/SignupPage.tsx b/packages/fakeyou/src/v2/view/signup/SignupPage.tsx index e2c5644577..60ffd4c594 100644 --- a/packages/fakeyou/src/v2/view/signup/SignupPage.tsx +++ b/packages/fakeyou/src/v2/view/signup/SignupPage.tsx @@ -207,7 +207,20 @@ function SignupPage(props: Props) { }; if (props.sessionWrapper.isLoggedIn()) { - return

Invalid view for logged in users.
; + return ( +
+
+

+ Invalid view for logged in users. +

+
+ + Back to main + +
+
+
+ ); } let usernameInputClass = USE_REFRESH ? "form-control" : "input"; @@ -274,45 +287,69 @@ function SignupPage(props: Props) { return (

Sign Up

- +
- +

{usernameInvalidReason}

- +
- +

{emailInvalidReason}

- +
- +

{passwordInvalidReason}

- +
- + @@ -321,24 +358,29 @@ function SignupPage(props: Props) { {passwordConfirmationInvalidReason}

- +
- +
- Remember your password! We don't have password reset currently, and it'll be a - few more weeks before it's added (there are more important features to work on). If you lose your + Remember your password! We don't have password + reset currently, and it'll be a few more weeks before it's added + (there are more important features to work on). If you lose your password, please let us know in Discord.
- - + + - +
- - Already have an account? Log in instead! - + > + Already have an account? Log in instead! +
); } @@ -347,7 +389,7 @@ function SignupPage(props: Props) {
-
+

Sign Up

@@ -429,13 +471,8 @@ function SignupPage(props: Props) { Sign up

- Already have an account? - - Log in instead. - + Already have an account?{" "} + Log in instead.