diff --git a/assets/js/src/wizard/steps/pitch_mss/step.jsx b/assets/js/src/wizard/steps/pitch_mss/step.jsx index be7f3f1c83..c822fa6d23 100644 --- a/assets/js/src/wizard/steps/pitch_mss/step.jsx +++ b/assets/js/src/wizard/steps/pitch_mss/step.jsx @@ -12,7 +12,7 @@ const BenefitsList = () => ( ); -const FreePlanSubscribers = () => ( +const FreePlanSubscribers = (props) => ( <>

{MailPoet.I18n.t('welcomeWizardMSSFreeTitle')}

{MailPoet.I18n.t('welcomeWizardMSSFreeSubtitle')}

@@ -22,7 +22,7 @@ const FreePlanSubscribers = () => (

( ); -const NotFreePlanSubscribers = () => ( +FreePlanSubscribers.propTypes = { + mailpoetAccountUrl: PropTypes.string.isRequired, +}; + +const NotFreePlanSubscribers = (props) => ( <>

{MailPoet.I18n.t('welcomeWizardMSSNotFreeTitle')}

@@ -45,7 +49,7 @@ const NotFreePlanSubscribers = () => (

( ); +NotFreePlanSubscribers.propTypes = { + mailpoetAccountUrl: PropTypes.string.isRequired, +}; + const Step = (props) => (
{ props.subscribersCount < 1000 ? ( - + ) : ( - + ) }

@@ -86,6 +98,7 @@ const Step = (props) => ( Step.propTypes = { next: PropTypes.func.isRequired, subscribersCount: PropTypes.number.isRequired, + mailpoetAccountUrl: PropTypes.string.isRequired, }; export default Step; diff --git a/assets/js/src/wizard/welcome_wizard_controller.jsx b/assets/js/src/wizard/welcome_wizard_controller.jsx index ee59cfd2b8..83335ec06e 100644 --- a/assets/js/src/wizard/welcome_wizard_controller.jsx +++ b/assets/js/src/wizard/welcome_wizard_controller.jsx @@ -164,6 +164,7 @@ const WelcomeWizardStepsController = (props) => { redirect(step)} subscribersCount={window.subscribers_count} + mailpoetAccountUrl={window.mailpoet_account_url} /> ) : null diff --git a/views/welcome_wizard.html b/views/welcome_wizard.html index 6c81c2765f..042280b248 100644 --- a/views/welcome_wizard.html +++ b/views/welcome_wizard.html @@ -16,6 +16,7 @@ var admin_email = <%= json_encode(admin_email) %>; var hide_mailpoet_beacon = true; var subscribers_count = <%= subscribers_count %>; + var mailpoet_account_url = '<%= add_referral_id("https://account.mailpoet.com/?s=" ~ subscribers_count) %>';