From 942c87f02a94b69c9e765958d2576791b3dc4eda Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 15 Feb 2024 21:09:26 +0300 Subject: [PATCH] compact --- src/components/Nav/AuthModal/RegisterForm.tsx | 51 ++++++------------- 1 file changed, 15 insertions(+), 36 deletions(-) diff --git a/src/components/Nav/AuthModal/RegisterForm.tsx b/src/components/Nav/AuthModal/RegisterForm.tsx index fcd66d18..fd3b2467 100644 --- a/src/components/Nav/AuthModal/RegisterForm.tsx +++ b/src/components/Nav/AuthModal/RegisterForm.tsx @@ -140,6 +140,9 @@ export const RegisterForm = () => { email: ( <> {t('This email is verified')}. {t('You can')} + changeSearchParams({ mode: 'login' })}> + {t('enter')} + ), })) @@ -221,45 +224,21 @@ export const RegisterForm = () => { - changeSearchParams({ mode: 'login' })} - > - {emailStatus() === 'verified' ? t('Login') : t('')} - - } - > - setPasswordError(err)} - onInput={(value) => setPassword(value)} - /> - + setPasswordError(err)} + onInput={(value) => setPassword(value)} + />
- changeSearchParams({ mode: 'send-reset-link' })} - > - {t('Set the new password')} - - } + - + {isSubmitting() ? '...' : t('Join')} +