Remove unused props

This commit is contained in:
Amine Ben hammou
2019-05-07 16:32:56 +00:00
committed by M. Shull
parent 0c3473f03d
commit ebe22aa98e
5 changed files with 1 additions and 9 deletions

View File

@@ -42,7 +42,7 @@ OldInstallationWarning.propTypes = {
emailAddress: PropTypes.string.isRequired,
};
const SenderEmailAddressWarning = ({ emailAddress, mssActive, pluginInstalledAt }) => {
const SenderEmailAddressWarning = ({ emailAddress, mssActive }) => {
if (mssActive) return null
const emailAddressDomain = emailAddress.split('@').pop().toLowerCase();
if (window.mailpoet_free_domains.indexOf(emailAddressDomain) > -1) {
@@ -54,7 +54,6 @@ const SenderEmailAddressWarning = ({ emailAddress, mssActive, pluginInstalledAt
SenderEmailAddressWarning.propTypes = {
emailAddress: PropTypes.string.isRequired,
mssActive: PropTypes.bool.isRequired,
pluginInstalledAt: PropTypes.string.isRequired,
};
export default SenderEmailAddressWarning;