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;

View File

@ -102,13 +102,6 @@
'seeVideo': __(' See video guide'),
'importAgain': __('Import again'),
'viewSubscribers': __('View subscribers'),
'offerMigrationHead': __('Let a MailPoet expert help you for free'),
'offerMigrationSubhead': __('You have a nice list! Our amazing support team can help you, all for free, with the following'),
'offerMigrationList1': __('Review your list for best practices to ensure top deliverability'),
'offerMigrationList2': __('Review your Settings to make sure everything is set up correctly'),
'offerMigrationList3': __('Design a beautiful template that matches your brand'),
'offerMigrationList4': __('Review your forms to get more subscribers'),
'offerMigrationCTA': __('Contact us for free'),
'methodPaste': __('Paste the data into a text box'),
'pickLists': __('Pick one or more list(s)'),
'pickListsDescription': __('Pick the list that you want to import these subscribers to.'),