Update eslint packages

[MAILPOET-2661]
This commit is contained in:
Pavel Dohnal
2020-01-27 14:41:55 +01:00
committed by Jack Kitterhing
parent 3ce2015dc4
commit 1ce180fcc7
63 changed files with 1197 additions and 681 deletions

View File

@@ -49,5 +49,13 @@ ConfirmAlert.defaultProps = {
export default function confirmAlert(props) {
// the below render is only to invoke proptypes on ConfirmAlert
ReactDOMServer.renderToString(<ConfirmAlert {...props} />);
ReactDOMServer.renderToString(
<ConfirmAlert
title={props.title}
message={props.message}
cancelLabel={props.cancelLabel}
confirmLabel={props.confirmLabel}
onConfirm={props.onConfirm}
/>
);
}

View File

@@ -11,7 +11,7 @@ const SenderEmailAddressWarning = ({ emailAddress, mssActive }) => {
const emailAddressDomain = emailAddress.split('@').pop().toLowerCase();
if (window.mailpoet_free_domains.indexOf(emailAddressDomain) > -1) {
return (
<React.Fragment>
<>
<p
className="sender_email_address_warning"
data-acceptance-id="freemail-sender-warning-old-installation"
@@ -39,7 +39,7 @@ const SenderEmailAddressWarning = ({ emailAddress, mssActive }) => {
{MailPoet.I18n.t('senderEmailAddressWarning3')}
</a>
</p>
</React.Fragment>
</>
);
}
return null;