From eb20c2031cf66559bcb68df1d2ecf7e81c3f3923 Mon Sep 17 00:00:00 2001 From: Pavel Dohnal Date: Tue, 1 Jun 2021 10:51:26 +0200 Subject: [PATCH] Remove concierge migration from the import [MAILPOET-3642] --- .../importExport/import/step_results.jsx | 11 ----- .../import/step_results/offer_migration.jsx | 43 ------------------- views/subscribers/importExport/import.html | 7 --- 3 files changed, 61 deletions(-) delete mode 100644 assets/js/src/subscribers/importExport/import/step_results/offer_migration.jsx diff --git a/assets/js/src/subscribers/importExport/import/step_results.jsx b/assets/js/src/subscribers/importExport/import/step_results.jsx index c7df39cc15..c0babf3610 100644 --- a/assets/js/src/subscribers/importExport/import/step_results.jsx +++ b/assets/js/src/subscribers/importExport/import/step_results.jsx @@ -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 ( <>
@@ -181,9 +173,6 @@ function StepResults({
- ); } diff --git a/assets/js/src/subscribers/importExport/import/step_results/offer_migration.jsx b/assets/js/src/subscribers/importExport/import/step_results/offer_migration.jsx deleted file mode 100644 index 8040d939e7..0000000000 --- a/assets/js/src/subscribers/importExport/import/step_results/offer_migration.jsx +++ /dev/null @@ -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 ( - <> -
- {MailPoet.I18n.t('offerMigrationHead')} -

- {MailPoet.I18n.t('offerMigrationSubhead')} - : -

- - - - ); -}; - -OfferMigration.propTypes = { - subscribersCount: PropTypes.number.isRequired, -}; - -export default OfferMigration; diff --git a/views/subscribers/importExport/import.html b/views/subscribers/importExport/import.html index def0d26637..de1560437e 100644 --- a/views/subscribers/importExport/import.html +++ b/views/subscribers/importExport/import.html @@ -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.'),