From d8067162ec8d4e195ee7600c3f3b22263e2d5e88 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia Date: Wed, 12 Jun 2024 20:23:26 +0530 Subject: [PATCH] chore: auth email input one password extenction improvement --- space/components/account/auth-forms/email.tsx | 7 ++++--- space/components/account/auth-forms/password.tsx | 7 ++++--- space/components/account/auth-forms/unique-code.tsx | 7 ++++--- web/core/components/account/auth-forms/email.tsx | 7 ++++--- web/core/components/account/auth-forms/password.tsx | 7 ++++--- web/core/components/account/auth-forms/unique-code.tsx | 7 ++++--- 6 files changed, 24 insertions(+), 18 deletions(-) diff --git a/space/components/account/auth-forms/email.tsx b/space/components/account/auth-forms/email.tsx index 946e51916..86e3507b8 100644 --- a/space/components/account/auth-forms/email.tsx +++ b/space/components/account/auth-forms/email.tsx @@ -66,9 +66,10 @@ export const AuthEmailForm: FC = observer((props) => { autoFocus /> {email.length > 0 && ( -
- setEmail("")} /> -
+ setEmail("")} + /> )} {emailError?.email && !isFocused && ( diff --git a/space/components/account/auth-forms/password.tsx b/space/components/account/auth-forms/password.tsx index 361bd4fc3..5a2f0664e 100644 --- a/space/components/account/auth-forms/password.tsx +++ b/space/components/account/auth-forms/password.tsx @@ -117,9 +117,10 @@ export const AuthPasswordForm: React.FC = observer((props: Props) => { disabled /> {passwordFormData.email.length > 0 && ( -
- -
+ )} diff --git a/space/components/account/auth-forms/unique-code.tsx b/space/components/account/auth-forms/unique-code.tsx index e3c82bce6..10c7b4f00 100644 --- a/space/components/account/auth-forms/unique-code.tsx +++ b/space/components/account/auth-forms/unique-code.tsx @@ -101,9 +101,10 @@ export const AuthUniqueCodeForm: React.FC = (props) => { disabled /> {uniqueCodeFormData.email.length > 0 && ( -
- -
+ )} diff --git a/web/core/components/account/auth-forms/email.tsx b/web/core/components/account/auth-forms/email.tsx index f25bf7512..997e8aa27 100644 --- a/web/core/components/account/auth-forms/email.tsx +++ b/web/core/components/account/auth-forms/email.tsx @@ -66,9 +66,10 @@ export const AuthEmailForm: FC = observer((props) => { autoFocus /> {email.length > 0 && ( -
- setEmail("")} /> -
+ setEmail("")} + /> )} {emailError?.email && !isFocused && ( diff --git a/web/core/components/account/auth-forms/password.tsx b/web/core/components/account/auth-forms/password.tsx index 6437688e0..7822d9aa4 100644 --- a/web/core/components/account/auth-forms/password.tsx +++ b/web/core/components/account/auth-forms/password.tsx @@ -140,9 +140,10 @@ export const AuthPasswordForm: React.FC = observer((props: Props) => { disabled /> {passwordFormData.email.length > 0 && ( -
- -
+ )} diff --git a/web/core/components/account/auth-forms/unique-code.tsx b/web/core/components/account/auth-forms/unique-code.tsx index 3c121f3bb..2d17c0ade 100644 --- a/web/core/components/account/auth-forms/unique-code.tsx +++ b/web/core/components/account/auth-forms/unique-code.tsx @@ -100,9 +100,10 @@ export const AuthUniqueCodeForm: React.FC = (props) => { disabled /> {uniqueCodeFormData.email.length > 0 && ( -
- -
+ )}