Display illustration
[MAILPOET-2142]
This commit is contained in:
committed by
Jack Kitterhing
parent
d9b968a34e
commit
c15919a3e9
@@ -30,6 +30,7 @@ function renderSuccess(newsletter, testingPassed) {
|
||||
return (
|
||||
<Success
|
||||
illustrationImageUrl={window.mailpoet_congratulations_success_image}
|
||||
MSSPitchIllustrationUrl={window.MSS_pitch_illustration_url}
|
||||
successClicked={successPageClosed}
|
||||
newsletter={newsletter}
|
||||
/>
|
||||
|
@@ -7,7 +7,9 @@ import PitchMss from './success_pitch_mss.jsx';
|
||||
function Success(props) {
|
||||
if (!window.has_premium_key) {
|
||||
return (
|
||||
<PitchMss />
|
||||
<PitchMss
|
||||
MSS_pitch_illustration_url={props.MSS_pitch_illustration_url}
|
||||
/>
|
||||
);
|
||||
}
|
||||
return (
|
||||
@@ -22,6 +24,7 @@ function Success(props) {
|
||||
Success.propTypes = {
|
||||
successClicked: PropTypes.func.isRequired,
|
||||
illustrationImageUrl: PropTypes.string.isRequired,
|
||||
MSS_pitch_illustration_url: PropTypes.string.isRequired,
|
||||
newsletter: PropTypes.shape({
|
||||
status: PropTypes.string.isRequired,
|
||||
type: PropTypes.string.isRequired,
|
||||
|
@@ -9,7 +9,7 @@ function PitchMss(props) {
|
||||
<div className="mailpoet_congratulate_success">
|
||||
<h1>{MailPoet.I18n.t('congratulationsMSSPitchHeader')}</h1>
|
||||
<WelcomeWizardStepLayoutBody
|
||||
illustrationUrl={props.MSS_pitch_illustration_url}
|
||||
illustrationUrl={props.MSSPitchIllustrationUrl}
|
||||
displayProgressBar={false}
|
||||
>
|
||||
HERE COMES THE BODY
|
||||
@@ -19,7 +19,8 @@ function PitchMss(props) {
|
||||
}
|
||||
|
||||
PitchMss.propTypes = {
|
||||
MSS_pitch_illustration_url: PropTypes.string.isRequired,
|
||||
MSSPitchIllustrationUrl: PropTypes.string.isRequired,
|
||||
onFinish: PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
|
||||
|
@@ -25,6 +25,7 @@
|
||||
var mailpoet_tracking_enabled = <%= json_encode(tracking_enabled) %>;
|
||||
var mailpoet_premium_active = <%= json_encode(premium_plugin_active) %>;
|
||||
var has_premium_key = <%= json_encode(has_premium_key) %>;
|
||||
var MSS_pitch_illustration_url = '<%= cdn_url('welcome-wizard/illu-pitch-mss.20190912.png') %>';
|
||||
var mailpoet_woocommerce_active = <%= json_encode(is_woocommerce_active) %>;
|
||||
var mailpoet_automatic_emails = <%= json_encode(automatic_emails) %>;
|
||||
var mailpoet_feature_announcement_has_news = <%= json_encode(feature_announcement_has_news) %>;
|
||||
|
Reference in New Issue
Block a user