Skip to content

Commit

Permalink
Wrap the headerText in Stepper in a translate call (#91048)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlind1 committed May 23, 2024
1 parent a2a916a commit 554abd0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { StepContainer } from '@automattic/onboarding';
import { useTranslate } from 'i18n-calypso';
import SignupFormSocialFirst from 'calypso/blocks/signup-form/signup-form-social-first';
import FormattedHeader from 'calypso/components/formatted-header';
import { recordTracksEvent } from 'calypso/lib/analytics/tracks';
Expand All @@ -14,14 +15,15 @@ const StepContent: Step = ( { flow, stepName, navigation } ) => {
const { submit } = navigation;
const socialService = getSocialServiceFromClientId( '' );
const isLoggedIn = useSelector( isUserLoggedIn );
const translate = useTranslate();

if ( isLoggedIn ) {
submit?.();
}

return (
<>
<FormattedHeader align="center" headerText="Create your account" brandFont />
<FormattedHeader align="center" headerText={ translate( 'Create your account' ) } brandFont />
<SignupFormSocialFirst
step={ {} }
stepName={ stepName }
Expand Down

0 comments on commit 554abd0

Please sign in to comment.