From 63da307362a5ec234d4f589a9bef65b0163fc320 Mon Sep 17 00:00:00 2001 From: Gabriel Caires Date: Mon, 21 Oct 2024 11:12:32 +0100 Subject: [PATCH] Remove english based verifications --- .../components/credentials-form.tsx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/client/landing/stepper/declarative-flow/internals/steps-repository/site-migration-credentials/components/credentials-form.tsx b/client/landing/stepper/declarative-flow/internals/steps-repository/site-migration-credentials/components/credentials-form.tsx index bd2d53333ea33..bb977e6e1f431 100644 --- a/client/landing/stepper/declarative-flow/internals/steps-repository/site-migration-credentials/components/credentials-form.tsx +++ b/client/landing/stepper/declarative-flow/internals/steps-repository/site-migration-credentials/components/credentials-form.tsx @@ -1,4 +1,3 @@ -import { useIsEnglishLocale } from '@automattic/i18n-utils'; import { NextButton } from '@automattic/onboarding'; import { useTranslate } from 'i18n-calypso'; import { FC } from 'react'; @@ -21,14 +20,13 @@ interface CredentialsFormProps { export const CredentialsForm: FC< CredentialsFormProps > = ( { onSubmit, onSkip } ) => { const translate = useTranslate(); - const isEnglishLocale = useIsEnglishLocale(); const { control, errors, accessMethod, isBusy, submitHandler, canBypassVerification } = useCredentialsForm( onSubmit ); const queryError = useQuery().get( 'error' ) || null; let errorMessage; - if ( isEnglishLocale && errors.root && errors.root.type !== 'manual' && errors.root.message ) { + if ( errors.root && errors.root.type !== 'manual' && errors.root.message ) { errorMessage = errors.root.message; } else if ( queryError === 'ticket-creation' ) { errorMessage = translate( @@ -37,10 +35,10 @@ export const CredentialsForm: FC< CredentialsFormProps > = ( { onSubmit, onSkip } const getContinueButtonText = () => { - if ( isEnglishLocale && isBusy && ! canBypassVerification ) { + if ( isBusy && ! canBypassVerification ) { return translate( 'Verifying credentials' ); } - if ( isEnglishLocale && canBypassVerification ) { + if ( canBypassVerification ) { return translate( 'Continue anyways' ); } @@ -92,9 +90,7 @@ export const CredentialsForm: FC< CredentialsFormProps > = ( { onSubmit, onSkip onClick={ onSkip } type="button" > - { isEnglishLocale - ? translate( 'I need help, please contact me' ) - : translate( 'Skip, I need help providing access' ) } + { translate( 'I need help, please contact me' ) }