File tree 2 files changed +4
-27
lines changed
2 files changed +4
-27
lines changed Original file line number Diff line number Diff line change 1
1
import { isEnabled } from '@automattic/calypso-config' ;
2
2
import { HOSTING_LP_FLOW , ONBOARDING_FLOW , ONBOARDING_GUIDED_FLOW } from '@automattic/onboarding' ;
3
3
import { translate } from 'i18n-calypso' ;
4
- import { savePreference } from 'calypso/state/preferences/actions' ;
5
- import { READER_AS_LANDING_PAGE_PREFERENCE } from 'calypso/state/sites/selectors/has-reader-as-landing-page' ;
6
4
7
5
const noop = ( ) => { } ;
8
6
@@ -92,14 +90,6 @@ export function generateFlows( {
92
90
providesDependenciesInQuery : [ 'toStepper' ] ,
93
91
optionalDependenciesInQuery : [ 'toStepper' ] ,
94
92
hideProgressIndicator : true ,
95
- postCompleteCallback : async ( { dispatch } ) => {
96
- dispatch (
97
- savePreference ( READER_AS_LANDING_PAGE_PREFERENCE , {
98
- useReaderAsLandingPage : true ,
99
- updatedAt : Date . now ( ) ,
100
- } )
101
- ) ;
102
- } ,
103
93
} ,
104
94
{
105
95
name : 'business' ,
@@ -382,14 +372,6 @@ export function generateFlows( {
382
372
lastModified : '2025-01-28' ,
383
373
showRecaptcha : true ,
384
374
hideProgressIndicator : true ,
385
- postCompleteCallback : async ( { dispatch } ) => {
386
- dispatch (
387
- savePreference ( READER_AS_LANDING_PAGE_PREFERENCE , {
388
- useReaderAsLandingPage : true ,
389
- updatedAt : Date . now ( ) ,
390
- } )
391
- ) ;
392
- } ,
393
375
} ,
394
376
{
395
377
name : 'crowdsignal' ,
Original file line number Diff line number Diff line change @@ -395,11 +395,7 @@ class Signup extends Component {
395
395
396
396
if ( flow . postCompleteCallback ) {
397
397
const siteId = dependencies && dependencies . siteId ;
398
- await flow . postCompleteCallback ( {
399
- siteId,
400
- flowName : this . props . flowName ,
401
- dispatch : this . props . dispatch ,
402
- } ) ;
398
+ await flow . postCompleteCallback ( { siteId, flowName : this . props . flowName } ) ;
403
399
}
404
400
} ;
405
401
@@ -635,7 +631,7 @@ class Signup extends Component {
635
631
dependencies . oauth2_client_id && ! progress ?. [ 'oauth2-user' ] ?. service ; // service is set for social signup (e.g. Google, Apple)
636
632
// If the user is not logged in, we need to log them in first.
637
633
// And if it's regular oauth client signup, we perform the oauth login because the WPCC user creation code automatically logs the user in.
638
- // There' s no need to turn the bearer token into a cookie. If we log user in again, it will cause an activation error.
634
+ // There’ s no need to turn the bearer token into a cookie. If we log user in again, it will cause an activation error.
639
635
// However, we need to skip this to perform a regular login for social sign in.
640
636
if ( ! userIsLoggedIn && ( config . isEnabled ( 'oauth' ) || isRegularOauth2ClientSignup ) ) {
641
637
debug ( `Handling oauth login` ) ;
@@ -1016,10 +1012,9 @@ export default connect(
1016
1012
hostingFlow,
1017
1013
} ;
1018
1014
} ,
1019
- ( dispatch ) => ( {
1020
- dispatch,
1015
+ {
1021
1016
submitSignupStep,
1022
1017
removeStep,
1023
1018
addStep,
1024
- } )
1019
+ }
1025
1020
) ( Signup ) ;
You can’t perform that action at this time.
0 commit comments