From 0476bc7e31229d8f14b4774ca88ffdbec51f3cf1 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Wed, 19 Jan 2022 23:58:19 +0000 Subject: [PATCH] Signup UI fixes, disable autocomplete --- webclient/src/Account.js | 11 ++++++++++ webclient/src/LoginSignup.js | 40 +++++++++++++++++++++++++++--------- 2 files changed, 41 insertions(+), 10 deletions(-) diff --git a/webclient/src/Account.js b/webclient/src/Account.js index a5b226f..ae2cd29 100644 --- a/webclient/src/Account.js +++ b/webclient/src/Account.js @@ -213,20 +213,28 @@ export function AccountForm(props) {
Member Details
+
+ +

{user.username}

+
+ @@ -252,15 +260,18 @@ export function AccountForm(props) { {member.discourse_username && } diff --git a/webclient/src/LoginSignup.js b/webclient/src/LoginSignup.js index bb69606..ca631bb 100644 --- a/webclient/src/LoginSignup.js +++ b/webclient/src/LoginSignup.js @@ -73,6 +73,7 @@ export function SignupForm(props) { const handleValues = (e, v) => setInput({ ...input, [v.name]: v.value }); const handleChange = (e) => handleValues(e, e.currentTarget); + const handleCheck = (e, v) => setInput({ ...input, [v.name]: v.checked }); const genUsername = () => { if (input.first_name && input.last_name) { @@ -130,30 +131,26 @@ export function SignupForm(props) { <> - Please do a password reset instead.

} + {!!genUsername() && +
+ +

{genUsername()}

+
+ } + +
+ + +
+

{progress.map(x => <>{x}
)}

- + Sign Up