Fix showing header in newsletter types

[MAILPOET-2383]
This commit is contained in:
Ján Mikláš
2019-12-18 16:00:25 +01:00
committed by Jack Kitterhing
parent 3f4eb747c5
commit 5a4ce8f742

View File

@@ -256,10 +256,12 @@ class NewsletterTypes extends React.Component {
<div>
<link rel="prefetch" href={window.mailpoet_editor_javascript_url} as="script" />
{this.props.showHeader
&& <h1>{MailPoet.I18n.t(window.mailpoet_newsletters_count === 0 ? 'createFirstEmailTitle' : 'pickCampaignType')}</h1>
&& <Breadcrumb step="type" />
}
{this.props.showHeader && (
<>
<h1>{MailPoet.I18n.t(window.mailpoet_newsletters_count === 0 ? 'createFirstEmailTitle' : 'pickCampaignType')}</h1>
<Breadcrumb step="type" />
</>
)}
<ul className="mailpoet_boxes mailpoet_boxes_types">
{types.map((type) => (