diff --git a/assets/css/src/components-plugin/_import-export.scss b/assets/css/src/components-plugin/_import-export.scss
index 4a6ba8fc02..fe59a55e5e 100644
--- a/assets/css/src/components-plugin/_import-export.scss
+++ b/assets/css/src/components-plugin/_import-export.scss
@@ -3,35 +3,6 @@
display: none;
}
-span {
- &.mailpoet_mailchimp-key-status {
- &.mailpoet_mailchimp-ok {
- &:before {
- color: #0e90d2;
- content: '\2713';
- margin-left: 15px;
- }
- }
-
- &.mailpoet_mailchimp-error {
- &:before {
- color: #900;
- content: '\2717';
- margin-left: 15px;
- }
- }
- }
-
- &.select2-search {
- &.select2-search--dropdown {
- .admin_page_mailpoet-import &,
- .admin_page_mailpoet-export & {
- display: none !important;
- }
- }
- }
-}
-
.subscribers_data {
overflow: auto;
@@ -174,73 +145,6 @@ tr {
}
}
-.mailpoet_method_selection_step {
- align-items: flex-start;
- display: flex;
- flex-direction: column;
-
- > * {
- margin: 10px 0;
- }
-
- .mailpoet_import_selection_form {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
-
- > * {
- margin-right: 2.5em;
- }
- }
-
- .mailpoet_import_heading {
- color: #23282d;
- font-size: 14px;
- font-weight: 600;
- line-height: 1.3;
- }
-
- .description {
- color: #666;
- font-size: 13px;
- font-style: italic;
- font-weight: 600;
- margin: 2px 0 5px;
- }
-
- .mailpoet_import_paste_texts {
- margin-right: 25px;
- width: 300px;
- }
-
- .mailpoet_import_method_paste {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- }
-
- .mailpoet_import_mailchimp {
- .mailpoet_mailchimp_key,
- .mailpoet_mailchimp_lists {
- align-items: center;
- display: flex;
- flex-wrap: nowrap;
- margin-bottom: 40px;
- }
-
- .mailpoet_mailchimp_key_input {
- align-items: center;
- display: flex;
- margin-right: 20px;
- }
-
- .mailpoet_import_heading {
- display: block;
- width: 300px;
- }
- }
-}
-
.mailpoet_offer_migration {
margin-top: 40px;
}
diff --git a/assets/js/src/subscribers/importExport/import/previous_next_step_buttons.jsx b/assets/js/src/subscribers/importExport/import/previous_next_step_buttons.jsx
index 7037318c86..972f672243 100644
--- a/assets/js/src/subscribers/importExport/import/previous_next_step_buttons.jsx
+++ b/assets/js/src/subscribers/importExport/import/previous_next_step_buttons.jsx
@@ -1,48 +1,34 @@
import React from 'react';
import PropTypes from 'prop-types';
-import classNames from 'classnames';
import MailPoet from 'mailpoet';
+import Button from 'common/button/button';
const PreviousNextStepButtons = ({
hidePrevious,
canGoNext,
onPreviousAction,
onNextAction,
-}) => {
- const nextStepClasses = classNames(
- 'button-primary',
- 'wysija',
- { 'button-disabled': !canGoNext },
- );
- return (
-
- {!hidePrevious && (
- <>
-
-
- >
- )}
-
-
- );
-};
+}) => (
+
+ {!hidePrevious && (
+
+ )}
+
+
+);
PreviousNextStepButtons.propTypes = {
canGoNext: PropTypes.bool,
diff --git a/assets/js/src/subscribers/importExport/import/step_method_selection.jsx b/assets/js/src/subscribers/importExport/import/step_method_selection.jsx
index 49fb055b2d..396c891afe 100644
--- a/assets/js/src/subscribers/importExport/import/step_method_selection.jsx
+++ b/assets/js/src/subscribers/importExport/import/step_method_selection.jsx
@@ -55,7 +55,7 @@ function StepMethodSelection({
};
return (
-
+
{
@@ -69,47 +70,50 @@ const MethodMailChimp = ({ onFinish, onPrevious }) => {
const showListsSelection = () => {
if (!mailChimpLoadedLists) return null;
return (
-
- {MailPoet.I18n.t('methodMailChimpSelectList')}
- setSelectedLists(e.target.value)}
- />
-
+ <>
+ {MailPoet.I18n.t('methodMailChimpSelectList')}
+
+ setSelectedLists(e.target.value)}
+ />
+
+ >
);
};
- const statusClasses = classNames(
- 'mailpoet_mailchimp-key-status',
- { 'mailpoet_mailchimp-ok': Array.isArray(mailChimpLoadedLists) }
- );
-
return (
-
-
+ >
);
};
diff --git a/assets/js/src/subscribers/importExport/import/step_method_selection/select_import_method.jsx b/assets/js/src/subscribers/importExport/import/step_method_selection/select_import_method.jsx
index 0c1ddc64f1..d2af11cf10 100644
--- a/assets/js/src/subscribers/importExport/import/step_method_selection/select_import_method.jsx
+++ b/assets/js/src/subscribers/importExport/import/step_method_selection/select_import_method.jsx
@@ -1,68 +1,68 @@
import React from 'react';
import MailPoet from 'mailpoet';
import PropTypes from 'prop-types';
-import classNames from 'classnames';
-import { GlobalContext } from 'context/index.jsx';
+import Radio from 'common/form/radio/radio';
+import Tag from 'common/tag/tag';
function SelectImportMethod({
activeMethod,
onMethodChange,
}) {
- const { users } = React.useContext(GlobalContext);
- const { isNewUser } = users;
- const badgeClasses = classNames(
- 'mailpoet_badge',
- 'mailpoet_badge_video',
- { mailpoet_badge_video_grey: !isNewUser }
- );
return (
<>
-
+
+
+ onMethodChange('paste-method')}
+ onCheck={() => onMethodChange('paste-method')}
/>
- {MailPoet.I18n.t('methodPaste')}
-
-
+
+
+
+ onMethodChange('file-method')}
+ onCheck={() => onMethodChange('file-method')}
/>
- {MailPoet.I18n.t('methodUpload')}
-
-
+
+
+
+
onMethodChange('mailchimp-method')}
+ onCheck={() => onMethodChange('mailchimp-method')}
/>
- {MailPoet.I18n.t('methodMailChimp')}
-
-
-
-
- {MailPoet.I18n.t('seeVideo')}
-
+
+
+
>
);
}