Remove concierge migration from the import
[MAILPOET-3642]
This commit is contained in:
@@ -6,7 +6,6 @@ import { withRouter } from 'react-router-dom';
|
||||
import ReactStringReplace from 'react-string-replace';
|
||||
|
||||
import Button from 'common/button/button';
|
||||
import OfferMigration from './step_results/offer_migration.jsx';
|
||||
|
||||
function ResultMessage({ subscribersCount, segments, initialMessage }) {
|
||||
if (subscribersCount) {
|
||||
@@ -130,13 +129,6 @@ function StepResults({
|
||||
if (errors.length) {
|
||||
MailPoet.Notice.error(_.flatten(errors));
|
||||
}
|
||||
let totalNumberOfSubscribers = 0;
|
||||
if (createdSubscribers != null) {
|
||||
totalNumberOfSubscribers += createdSubscribers;
|
||||
}
|
||||
if (updatedSubscribers != null) {
|
||||
totalNumberOfSubscribers += updatedSubscribers;
|
||||
}
|
||||
return (
|
||||
<>
|
||||
<div className="updated">
|
||||
@@ -181,9 +173,6 @@ function StepResults({
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
<OfferMigration
|
||||
subscribersCount={totalNumberOfSubscribers}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
@@ -1,43 +0,0 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import MailPoet from 'mailpoet';
|
||||
import Button from 'common/button/button';
|
||||
import Heading from 'common/typography/heading/heading';
|
||||
|
||||
const OfferMigration = ({
|
||||
subscribersCount,
|
||||
}) => {
|
||||
if (subscribersCount < 2000) return null;
|
||||
|
||||
return (
|
||||
<>
|
||||
<br />
|
||||
<Heading level={2}>{MailPoet.I18n.t('offerMigrationHead')}</Heading>
|
||||
<p>
|
||||
{MailPoet.I18n.t('offerMigrationSubhead')}
|
||||
:
|
||||
</p>
|
||||
<ul className="default-list">
|
||||
<li>{MailPoet.I18n.t('offerMigrationList1')}</li>
|
||||
<li>{MailPoet.I18n.t('offerMigrationList2')}</li>
|
||||
<li>{MailPoet.I18n.t('offerMigrationList3')}</li>
|
||||
<li>{MailPoet.I18n.t('offerMigrationList4')}</li>
|
||||
</ul>
|
||||
<Button
|
||||
variant="dark"
|
||||
type="button"
|
||||
href="https://www.mailpoet.com/concierge-migration/"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
{MailPoet.I18n.t('offerMigrationCTA')}
|
||||
</Button>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
OfferMigration.propTypes = {
|
||||
subscribersCount: PropTypes.number.isRequired,
|
||||
};
|
||||
|
||||
export default OfferMigration;
|
Reference in New Issue
Block a user