From 1361d2ed37a04deb6c6d711110298aa3da10658c Mon Sep 17 00:00:00 2001 From: Pavel Dohnal Date: Mon, 19 Apr 2021 11:00:37 +0200 Subject: [PATCH] Add consent description [MAILPOET-3526] --- .../new_subscribers_status.tsx | 18 ++++++++++++++++++ views/subscribers/importExport/import.html | 1 + 2 files changed, 19 insertions(+) diff --git a/assets/js/src/subscribers/importExport/import/step_data_manipulation/new_subscribers_status.tsx b/assets/js/src/subscribers/importExport/import/step_data_manipulation/new_subscribers_status.tsx index 0b165f932f..e2291d78b4 100644 --- a/assets/js/src/subscribers/importExport/import/step_data_manipulation/new_subscribers_status.tsx +++ b/assets/js/src/subscribers/importExport/import/step_data_manipulation/new_subscribers_status.tsx @@ -1,6 +1,7 @@ import React from 'react'; import MailPoet from 'mailpoet'; import Select from 'common/form/select/select'; +import ReactStringReplace from 'react-string-replace'; interface Props { newSubscribersStatus: string; @@ -19,6 +20,23 @@ export const NewSubscribersStatus: React.FunctionComponent = ({ <>
+

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