Remove concierge migration from the import

[MAILPOET-3642]
This commit is contained in:
Pavel Dohnal
2021-06-01 10:51:26 +02:00
committed by Veljko V
parent 42d3ad8d4d
commit eb20c2031c
3 changed files with 0 additions and 61 deletions

View File

@@ -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}
/>
</>
);
}

View File

@@ -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;