Fix typos and remove unused vars
This commit is contained in:
committed by
M. Shull
parent
01aa35d616
commit
6ba4b16c14
@ -1,14 +1,13 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import MailPoet from 'mailpoet';
|
import MailPoet from 'mailpoet';
|
||||||
import moment from 'moment';
|
|
||||||
import ReactStringReplace from 'react-string-replace';
|
import ReactStringReplace from 'react-string-replace';
|
||||||
|
|
||||||
const userHostDomain = window.location.hostname.replace('www.', '');
|
const userHostDomain = window.location.hostname.replace('www.', '');
|
||||||
const suggestedEmailAddress = `contact@${userHostDomain}`;
|
const suggestedEmailAddress = `contact@${userHostDomain}`;
|
||||||
|
|
||||||
const SenderEmailAddressWarning = ({ emailAddress, mssActive }) => {
|
const SenderEmailAddressWarning = ({ emailAddress, mssActive }) => {
|
||||||
if (mssActive) return null
|
if (mssActive) return null;
|
||||||
const emailAddressDomain = emailAddress.split('@').pop().toLowerCase();
|
const emailAddressDomain = emailAddress.split('@').pop().toLowerCase();
|
||||||
if (window.mailpoet_free_domains.indexOf(emailAddressDomain) > -1) {
|
if (window.mailpoet_free_domains.indexOf(emailAddressDomain) > -1) {
|
||||||
return (
|
return (
|
||||||
|
Reference in New Issue
Block a user