diff --git a/mailpoet/assets/js/src/wizard/steps/woo_commerce_step.jsx b/mailpoet/assets/js/src/wizard/steps/woo_commerce_step.jsx index 0f2305a008..dfadede055 100644 --- a/mailpoet/assets/js/src/wizard/steps/woo_commerce_step.jsx +++ b/mailpoet/assets/js/src/wizard/steps/woo_commerce_step.jsx @@ -41,29 +41,65 @@ function WizardWooCommerceStep(props) {

{MailPoet.I18n.t('wooCommerceSetupInfo')}

- {props.showCustomersImportSetting ? ( +
+ {props.showCustomersImportSetting ? ( +
+
+ + setImportType(value ? 'subscribed' : 'unsubscribed') + } + name="mailpoet_woocommerce_import_type" + automationId="woocommerce_import_type" + /> +
+
+

+ {ReactStringReplace( + MailPoet.I18n.t('wooCommerceSetupImportInfo'), + /\[link\](.*?)\[\/link\]/, + (match) => ( + + {match} + + ), + )} +

+
+ GDPR + {MailPoet.I18n.t('wooCommerceSetupImportGDPRInfo')} +
+
+
+ ) : null}
- setImportType(value ? 'subscribed' : 'unsubscribed') - } - name="mailpoet_woocommerce_import_type" - automationId="woocommerce_import_type" + showError={submitted && allowed === null} + checked={allowed} + onCheck={(value) => setAllowed(value)} + name="mailpoet_woocommerce_tracking" + automationId="woocommerce_tracking" />

{ReactStringReplace( - MailPoet.I18n.t('wooCommerceSetupImportInfo'), + MailPoet.I18n.t('wooCommerceSetupTrackingInfo'), /\[link\](.*?)\[\/link\]/, (match) => ( @@ -74,44 +110,10 @@ function WizardWooCommerceStep(props) {

GDPR - {MailPoet.I18n.t('wooCommerceSetupImportGDPRInfo')} + {MailPoet.I18n.t('wooCommerceSetupTrackingGDPRInfo')}
- ) : null} -
-
- setAllowed(value)} - name="mailpoet_woocommerce_tracking" - automationId="woocommerce_tracking" - /> -
-
-

- {ReactStringReplace( - MailPoet.I18n.t('wooCommerceSetupTrackingInfo'), - /\[link\](.*?)\[\/link\]/, - (match) => ( - - {match} - - ), - )} -

-
- GDPR - {MailPoet.I18n.t('wooCommerceSetupTrackingGDPRInfo')} -
-