diff --git a/client/landing/stepper/declarative-flow/internals/index.tsx b/client/landing/stepper/declarative-flow/internals/index.tsx index ec72e5a328218c..6e127bf1576eaf 100644 --- a/client/landing/stepper/declarative-flow/internals/index.tsx +++ b/client/landing/stepper/declarative-flow/internals/index.tsx @@ -1,11 +1,6 @@ -import { - isNewsletterOrLinkInBioFlow, - isSenseiFlow, - isWooExpressFlow, -} from '@automattic/onboarding'; +import { isWooExpressFlow } from '@automattic/onboarding'; import { useSelect } from '@wordpress/data'; import { useI18n } from '@wordpress/react-i18n'; -import { useTranslate } from 'i18n-calypso'; import React, { useEffect, lazy } from 'react'; import Modal from 'react-modal'; import { generatePath, useParams } from 'react-router'; @@ -76,7 +71,6 @@ export const FlowRenderer: React.FC< { flow: Flow } > = ( { flow } ) => { const currentStepRoute = params.step || ''; const isLoggedIn = useSelector( isUserLoggedIn ); const { lang = null } = useParams(); - const translate = useTranslate(); // Start tracking performance for this step. useStartStepperPerformanceTracking( params.flow || '', currentStepRoute ); @@ -191,13 +185,7 @@ export const FlowRenderer: React.FC< { flow: Flow } > = ( { flow } ) => { }; const getDocumentHeadTitle = () => { - if ( isNewsletterOrLinkInBioFlow( flow.name ) ) { - return flow.title; - } else if ( isSenseiFlow( flow.name ) ) { - return __( 'Course Creator' ); - } - - return flow.title ?? translate( 'Create a site' ); + return flow.title ?? __( 'Create a site' ); }; useSignUpStartTracking( { flow } );