From ce4cc7f2cf0417a47a2fc843a88fbc11e1dcab93 Mon Sep 17 00:00:00 2001 From: Prateek Shourya Date: Wed, 1 May 2024 13:59:11 +0530 Subject: [PATCH] chore: rename unique code auth form. --- web/components/account/auth-forms/sign-up-root.tsx | 6 +++--- web/components/account/auth-forms/unique-code.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/components/account/auth-forms/sign-up-root.tsx b/web/components/account/auth-forms/sign-up-root.tsx index 0f2241e31..f20fa4039 100644 --- a/web/components/account/auth-forms/sign-up-root.tsx +++ b/web/components/account/auth-forms/sign-up-root.tsx @@ -10,10 +10,10 @@ import { AuthHeader, AuthBanner, AuthEmailForm, + AuthUniqueCodeForm, AuthPasswordForm, OAuthOptions, TermsAndConditions, - UniqueCodeForm, } from "@/components/account"; // helpers import { @@ -63,7 +63,7 @@ export const SignUpAuthRoot: FC = observer(() => { await authService .signUpEmailCheck(data) .then(() => { - if (isSmtpConfigured) setAuthStep(EAuthSteps.UNIQUE_CODE); + if (isSmtpConfigured) setAuthStep(EAuthSteps.PASSWORD); else setAuthStep(EAuthSteps.PASSWORD); }) .catch((error) => { @@ -105,7 +105,7 @@ export const SignUpAuthRoot: FC = observer(() => { )} {authStep === EAuthSteps.EMAIL && } {authStep === EAuthSteps.UNIQUE_CODE && ( - { setEmail(""); diff --git a/web/components/account/auth-forms/unique-code.tsx b/web/components/account/auth-forms/unique-code.tsx index b22a93530..b0f6e6373 100644 --- a/web/components/account/auth-forms/unique-code.tsx +++ b/web/components/account/auth-forms/unique-code.tsx @@ -30,7 +30,7 @@ const defaultValues: TUniqueCodeFormValues = { // services const authService = new AuthService(); -export const UniqueCodeForm: React.FC = (props) => { +export const AuthUniqueCodeForm: React.FC = (props) => { const { email, handleEmailClear, submitButtonText, mode } = props; // states const [uniqueCodeFormData, setUniqueCodeFormData] = useState({ ...defaultValues, email });