@@ -8,7 +8,6 @@ import { connect } from 'react-redux';
88/**
99 * Internal dependencies
1010 */
11- import { abtest } from 'lib/abtest' ;
1211import { isEnabled } from 'config' ;
1312import hasInitializedSites from 'state/selectors/has-initialized-sites' ;
1413import Button from 'components/button' ;
@@ -18,11 +17,9 @@ import { getSiteType } from 'state/signup/steps/site-type/selectors';
1817import { submitSiteType } from 'state/signup/steps/site-type/actions' ;
1918import { saveSignupStep } from 'state/signup/progress/actions' ;
2019import { recordTracksEvent } from 'state/analytics/actions' ;
21- import { setSiteVertical } from 'state/signup/steps/site-vertical/actions' ;
2220
2321const siteTypeToFlowname = {
2422 import : 'import-onboarding' ,
25- 'get-started' : 'get-started' ,
2623 'online-store' : 'ecommerce-onboarding' ,
2724} ;
2825
@@ -39,19 +36,11 @@ class SiteType extends Component {
3936 this . submitStep ( 'import' ) ;
4037 } ;
4138
42- // This function is to support the A/B test `signupWithBasicSite`
43- // by using a flow that does not include intermediary steps before 'domain'
44- handleBasicSiteButtonClick = ( ) => this . submitStep ( 'business' , 'get-started' ) ;
45-
46- submitStep = ( siteTypeValue , flowName ) => {
39+ submitStep = siteTypeValue => {
4740 this . props . submitSiteType ( siteTypeValue ) ;
4841
49- if ( flowName ) {
50- this . props . goToNextStep ( flowName ) ;
51- return ;
52- }
53-
5442 // Modify the flowname if the site type matches an override.
43+ let flowName ;
5544 if ( 'import-onboarding' === this . props . flowName ) {
5645 flowName = siteTypeToFlowname [ siteTypeValue ] || 'onboarding' ;
5746 } else {
@@ -75,20 +64,6 @@ class SiteType extends Component {
7564 ) ;
7665 }
7766
78- renderStartWithBasicSiteButton ( ) {
79- if ( 'variant' !== abtest ( 'signupWithBasicSite' ) ) {
80- return null ;
81- }
82-
83- return (
84- < div className = "site-type__basic-site" >
85- < Button borderless onClick = { this . handleBasicSiteButtonClick } >
86- { this . props . translate ( 'Skip setup and start with a basic website.' ) }
87- </ Button >
88- </ div >
89- ) ;
90- }
91-
9267 renderStepContent ( ) {
9368 const { siteType } = this . props ;
9469
@@ -99,7 +74,6 @@ class SiteType extends Component {
9974 submitForm = { this . submitStep }
10075 siteType = { siteType }
10176 />
102- { this . renderStartWithBasicSiteButton ( ) }
10377 { this . renderImportButton ( ) }
10478 </ Fragment >
10579 ) ;
@@ -142,5 +116,5 @@ export default connect(
142116 siteType : getSiteType ( state ) || 'blog' ,
143117 hasInitializedSitesBackUrl : hasInitializedSites ( state ) ? '/sites/' : false ,
144118 } ) ,
145- { recordTracksEvent, saveSignupStep, submitSiteType, setSiteVertical }
119+ { recordTracksEvent, saveSignupStep, submitSiteType }
146120) ( localize ( SiteType ) ) ;
0 commit comments