Add MSS Pitch step
[MAILPOET-2142]
This commit is contained in:
committed by
Jack Kitterhing
parent
3521423b52
commit
fec075ca9a
16
assets/js/src/wizard/steps/pitch_mss/step.jsx
Normal file
16
assets/js/src/wizard/steps/pitch_mss/step.jsx
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
import PropTypes from 'prop-types';
|
||||||
|
import React from 'react';
|
||||||
|
import MailPoet from 'mailpoet';
|
||||||
|
|
||||||
|
const Step = (props) => (
|
||||||
|
<div className="mailpoet_welcome_wizard_step_content">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
|
||||||
|
Step.propTypes = {
|
||||||
|
next: PropTypes.func.isRequired,
|
||||||
|
subscribersCount: PropTypes.number.isRequired,
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Step;
|
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
export const getStepsCount = () => {
|
export const getStepsCount = () => {
|
||||||
let stepsCount = 3;
|
let stepsCount = 4;
|
||||||
if (window.is_woocommerce_active) {
|
if (window.is_woocommerce_active) {
|
||||||
stepsCount += 1;
|
stepsCount += 1;
|
||||||
}
|
}
|
||||||
|
@@ -7,6 +7,7 @@ import WelcomeWizardMigratedUserStep from './steps/migrated_user_step.jsx';
|
|||||||
import WelcomeWizardEmailCourseStep from './steps/email_course_step.jsx';
|
import WelcomeWizardEmailCourseStep from './steps/email_course_step.jsx';
|
||||||
import WelcomeWizardUsageTrackingStep from './steps/usage_tracking_step.jsx';
|
import WelcomeWizardUsageTrackingStep from './steps/usage_tracking_step.jsx';
|
||||||
import WelcomeWizardWooCommerceStep from './steps/woo_commerce_step.jsx';
|
import WelcomeWizardWooCommerceStep from './steps/woo_commerce_step.jsx';
|
||||||
|
import WelcomeWizardPitchMSSStep from './steps/pitch_mss/step.jsx';
|
||||||
import WelcomeWizardStepLayout from './steps/step_layout.jsx';
|
import WelcomeWizardStepLayout from './steps/step_layout.jsx';
|
||||||
|
|
||||||
import CreateSenderSettings from './create_sender_settings.jsx';
|
import CreateSenderSettings from './create_sender_settings.jsx';
|
||||||
@@ -152,6 +153,20 @@ const WelcomeWizardStepsController = (props) => {
|
|||||||
</WelcomeWizardStepLayout>
|
</WelcomeWizardStepLayout>
|
||||||
) : null
|
) : null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{ step === 5
|
||||||
|
? (
|
||||||
|
<WelcomeWizardStepLayout
|
||||||
|
step={step}
|
||||||
|
stepsCount={stepsCount}
|
||||||
|
illustrationUrl={window.wizard_tracking_illustration_url}
|
||||||
|
>
|
||||||
|
<WelcomeWizardPitchMSSStep
|
||||||
|
next={() => redirect(step)}
|
||||||
|
/>
|
||||||
|
</WelcomeWizardStepLayout>
|
||||||
|
) : null
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user