diff --git a/src/App.svelte b/src/App.svelte index 6e97c94..8f5b784 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -51,5 +51,5 @@
- +
diff --git a/src/lib/utils/validation.ts b/src/lib/utils/validation.ts index 6fdaacc..75cb702 100644 --- a/src/lib/utils/validation.ts +++ b/src/lib/utils/validation.ts @@ -55,9 +55,9 @@ export const entrySchema = yup.object().shape({ .string() .email() .matches( - emailRegex,'Please enter a valid Email ID' + emailRegex,'Please enter a valid email address' ) - .required('Please enter a valid Email ID') + .required('Please enter a valid email address') , }); diff --git a/src/pages/Auth/oauth-redirect/OauthRedirect.svelte b/src/pages/Auth/oauth-redirect/OauthRedirect.svelte index d69c40e..fc0ffd6 100644 --- a/src/pages/Auth/oauth-redirect/OauthRedirect.svelte +++ b/src/pages/Auth/oauth-redirect/OauthRedirect.svelte @@ -31,8 +31,7 @@ let data = JSON.parse(window.atob(accessToken?.split('.')[1])); redirectRules.title = `Welcome ${data.name}`; redirectRules.description = `Redirecting you to desktop app...`; - redirectRules.message = `If the application does not open automatically, - please click below.`; + redirectRules.message = `the token if you are facing any issue in redirecting to the login page`; redirectRules.loadingMessage = ''; redirectRules.isSpinner = false; diff --git a/src/pages/Auth/verify-magic-code/VerifyMagicCode.svelte b/src/pages/Auth/verify-magic-code/VerifyMagicCode.svelte index df6da4b..de648ef 100644 --- a/src/pages/Auth/verify-magic-code/VerifyMagicCode.svelte +++ b/src/pages/Auth/verify-magic-code/VerifyMagicCode.svelte @@ -22,7 +22,7 @@ let verifyLength: string = ''; let isRegistered = false; let redirectRules = { - title: 'Welcome to Sparrow!', + title: 'Welcome to Sparrow', description: 'Bridging Frontend and Backend Development.', message: `the token if you are facing any issue in redirecting to the login page`, isSpinner: true, @@ -131,7 +131,7 @@ const response = await sendMagicCodeEmail({ email: id }); if (response.isSuccessful) { showResendSuccess = true; - notifications.success('Verification code sent successfully'); + notifications.success('Magic code is sent to your email ID.'); localStorage.setItem(`timer-verify-magic-code-${id}`, new Date().getTime()); startTimer(); verificationCode1 = ''; @@ -142,7 +142,7 @@ verificationCode6 = ''; onCodeInput(); } else { - if (response.message === 'Cooldown Active') { + if (response.message === 'Cooldown Active') { navigate('/cool-down-active'); } else { notifications.error(response.message); diff --git a/src/pages/Auth/verify-magic-code/verify-magic-code.ts b/src/pages/Auth/verify-magic-code/verify-magic-code.ts index 823fdfd..df0ef3a 100644 --- a/src/pages/Auth/verify-magic-code/verify-magic-code.ts +++ b/src/pages/Auth/verify-magic-code/verify-magic-code.ts @@ -3,7 +3,7 @@ import { errorMessageTextMagicCode } from '$lib/store/auth.store'; import type { verifyMagicCodePostBody } from '$lib/utils/dto'; import { writable } from 'svelte/store'; -export const isSuccessfulResponseMagicCode = writable(false); +export const isSuccessfulResponseMagicCode = writable(false); export const handleVerifyUserEmail = async (verifyCodeCredential: verifyMagicCodePostBody) => { @@ -18,7 +18,7 @@ export const handleVerifyUserEmail = async (verifyCodeCredential: verifyMagicCod } if (response.message === 'Wrong Code') { - errorMessageTextMagicCode.set('Wrong verification code'); + errorMessageTextMagicCode.set('Please check the code again'); } } return response;