Add consent description

[MAILPOET-3526]
This commit is contained in:
Pavel Dohnal
2021-04-19 11:00:37 +02:00
committed by Veljko V
parent 14368dd1c6
commit 1361d2ed37
2 changed files with 19 additions and 0 deletions

View File

@@ -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<Props> = ({
<>
<div className="mailpoet-settings-label">
<label htmlFor="new_subscribers_status">{MailPoet.I18n.t('newSubscribersStatus')}</label>
<p className="description">
{ReactStringReplace(
MailPoet.I18n.t('consentSubscribed'),
/\[link](.*?)\[\/link]/,
(match) => (
<a
className="mailpoet-link"
href="https://kb.mailpoet.com/article/357-why-express-consent-is-important"
key="kb-link"
target="_blank"
rel="noopener noreferrer"
>
{ match }
</a>
)
)}
</p>
</div>
<div className="mailpoet-settings-inputs">
<Select

View File

@@ -140,6 +140,7 @@
'inactive': __('Inactive'),
'dontUpdate': _x('Dont update', 'This is a value in a select box for "Set new subscribers status to"'),
'newSubscribersStatus': __('Set new subscribers status to'),
'consentSubscribed': __('Choose “Subscribed” only if you have explicit consent to send them bulk or marketing emails. [link]Why is consent important?[/link]'),
'existingSubscribersStatus': __('Update existing subscribers status to'),
}) %>
<% endblock %>