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,
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user