diff --git a/client/blocks/login/index.jsx b/client/blocks/login/index.jsx index ebcf8bbb3384b..a6ca15f2b1847 100644 --- a/client/blocks/login/index.jsx +++ b/client/blocks/login/index.jsx @@ -72,7 +72,6 @@ class Login extends Component { isLinking: PropTypes.bool, isJetpack: PropTypes.bool.isRequired, isWhiteLogin: PropTypes.bool.isRequired, - isJetpackWooCommerceFlow: PropTypes.bool.isRequired, isFromAkismet: PropTypes.bool, isFromMigrationPlugin: PropTypes.bool, isFromAutomatticForAgenciesPlugin: PropTypes.bool, @@ -115,7 +114,6 @@ class Login extends Component { static defaultProps = { isJetpack: false, isWhiteLogin: false, - isJetpackWooCommerceFlow: false, }; componentDidMount() { @@ -191,7 +189,6 @@ class Login extends Component { showContinueAsUser = () => { const { isJetpack, - isJetpackWooCommerceFlow, oauth2Client, privateSite, socialConnect, @@ -210,7 +207,6 @@ class Login extends Component { ! privateSite && // Show the continue as user flow WooCommerce and Blaze Pro but not for other OAuth2 clients ! ( oauth2Client && ! isWCCOM && ! isBlazePro ) && - ! isJetpackWooCommerceFlow && ! isJetpack && ! fromSite && ! twoFactorEnabled && @@ -352,7 +348,6 @@ class Login extends Component { isGravPoweredClient, isGravPoweredLoginPage, isJetpack, - isJetpackWooCommerceFlow, isManualRenewalImmediateLoginAttempt, isP2Login, isSignupExistingAccount, @@ -617,26 +612,6 @@ class Login extends Component { } preHeader = null; postHeader =
{ subtitle }
; - } else if ( isJetpackWooCommerceFlow ) { - headerText = translate( 'Log in to your WordPress.com account' ); - preHeader = ( -- { translate( - 'Your account will enable you to start using the features and benefits offered by Jetpack & WooCommerce Services.' - ) } -
- ); } else if ( isFromMigrationPlugin ) { headerText = translate( 'Log in to your account' ); } else if ( isJetpack ) { @@ -1059,8 +1034,6 @@ export default connect( 'automattic-for-agencies-client' === new URLSearchParams( getRedirectToOriginal( state )?.split( '?' )[ 1 ] ).get( 'from' ), isJetpackWooDnaFlow: wooDnaConfig( getCurrentQueryArguments( state ) ).isWooDnaFlow(), - isJetpackWooCommerceFlow: - 'woocommerce-onboarding' === get( getCurrentQueryArguments( state ), 'from' ), isWooJPC: isWooJPCFlow( state ), isWCCOM: getIsWCCOM( state ), isWoo: getIsWoo( state ), diff --git a/client/blocks/login/login-form.jsx b/client/blocks/login/login-form.jsx index 5d084bb45297c..abd7b6ff14791 100644 --- a/client/blocks/login/login-form.jsx +++ b/client/blocks/login/login-form.jsx @@ -383,12 +383,8 @@ export class LoginForm extends Component { }; recordWooCommerceLoginTracks( method ) { - const { isJetpackWooCommerceFlow, isWoo, wccomFrom } = this.props; - if ( isJetpackWooCommerceFlow ) { - this.props.recordTracksEvent( 'wcadmin_storeprofiler_login_jetpack_account', { - login_method: method, - } ); - } else if ( isWoo && 'cart' === wccomFrom ) { + const { isWoo, wccomFrom } = this.props; + if ( isWoo && 'cart' === wccomFrom ) { this.props.recordTracksEvent( 'wcadmin_storeprofiler_payment_login', { login_method: method, } ); @@ -644,13 +640,7 @@ export class LoginForm extends Component { }; getMagicLoginPageLink() { - if ( - ! canDoMagicLogin( - this.props.twoFactorAuthType, - this.props.oauth2Client, - this.props.isJetpackWooCommerceFlow - ) - ) { + if ( ! canDoMagicLogin( this.props.twoFactorAuthType, this.props.oauth2Client ) ) { return null; } @@ -667,13 +657,7 @@ export class LoginForm extends Component { } getQrLoginLink() { - if ( - ! canDoMagicLogin( - this.props.twoFactorAuthType, - this.props.oauth2Client, - this.props.isJetpackWooCommerceFlow - ) - ) { + if ( ! canDoMagicLogin( this.props.twoFactorAuthType, this.props.oauth2Client ) ) { return null; } @@ -792,7 +776,6 @@ export class LoginForm extends Component { oauth2Client, requestError, socialAccountIsLinking: linkingSocialUser, - isJetpackWooCommerceFlow, isP2Login, isJetpack, isJetpackWooDnaFlow, @@ -878,10 +861,6 @@ export class LoginForm extends Component { ) : null; } - if ( isJetpackWooCommerceFlow ) { - return this.renderWooCommerce( { socialToS } ); - } - if ( isJetpackWooDnaFlow ) { return this.renderWooCommerce( { showSocialLogin: !! accountType, // Only show the social buttons after the user entered an email. @@ -1176,8 +1155,6 @@ export default connect( oauth2Client: getCurrentOAuth2Client( state ), isFromAutomatticForAgenciesPlugin: 'automattic-for-agencies-client' === get( getCurrentQueryArguments( state ), 'from' ), - isJetpackWooCommerceFlow: - 'woocommerce-onboarding' === get( getCurrentQueryArguments( state ), 'from' ), isJetpackWooDnaFlow: wooDnaConfig( getCurrentQueryArguments( state ) ).isWooDnaFlow(), isWooJPC: isWooJPCFlow( state ), isWoo: getIsWoo( state ), diff --git a/client/blocks/login/style.scss b/client/blocks/login/style.scss index 883433ed5dad5..c1256ff0f0451 100644 --- a/client/blocks/login/style.scss +++ b/client/blocks/login/style.scss @@ -6,7 +6,7 @@ $breakpoint-mobile: 782px; //Mobile size. -.layout:not(.is-jetpack-woocommerce-flow):not(.is-jetpack-woo-dna-flow):not(.is-wccom-oauth-flow):not(.is-woocommerce-core-profiler-flow) { +.layout:not(.is-jetpack-woo-dna-flow):not(.is-wccom-oauth-flow):not(.is-woocommerce-core-profiler-flow) { .login.is-jetpack:not(.is-automattic-for-agencies-flow) { .button.is-primary { background-color: var(--studio-jetpack-green-50); @@ -56,7 +56,6 @@ $breakpoint-mobile: 782px; //Mobile size. } } -.layout.is-jetpack-woocommerce-flow, .layout.is-jetpack-woo-dna-flow, .layout.is-wccom-oauth-flow { .login__jetpack-logo, diff --git a/client/blocks/signup-form/index.jsx b/client/blocks/signup-form/index.jsx index e7884800f3279..6ff4fbc83b146 100644 --- a/client/blocks/signup-form/index.jsx +++ b/client/blocks/signup-form/index.jsx @@ -765,12 +765,8 @@ class SignupForm extends Component { } recordWooCommerceSignupTracks( method ) { - const { isJetpackWooCommerceFlow, isWoo, wccomFrom } = this.props; - if ( isJetpackWooCommerceFlow ) { - recordTracksEvent( 'wcadmin_storeprofiler_create_jetpack_account', { - signup_method: method, - } ); - } else if ( isWoo && 'cart' === wccomFrom ) { + const { isWoo, wccomFrom } = this.props; + if ( isWoo && 'cart' === wccomFrom ) { recordTracksEvent( 'wcadmin_storeprofiler_payment_create_account', { signup_method: method, } ); @@ -1191,7 +1187,7 @@ class SignupForm extends Component { ); } - if ( this.props.isJetpackWooCommerceFlow || this.props.isJetpackWooDnaFlow ) { + if ( this.props.isJetpackWooDnaFlow ) { return (