Refactor function as React component
This commit is contained in:
committed by
M. Shull
parent
a49a6a6a65
commit
d1c3dcff80
@@ -5,7 +5,7 @@ import ReactStringReplace from 'react-string-replace';
|
|||||||
import MailPoet from 'mailpoet';
|
import MailPoet from 'mailpoet';
|
||||||
import PreviousNextStepButtons from './previous_next_step_buttons.jsx';
|
import PreviousNextStepButtons from './previous_next_step_buttons.jsx';
|
||||||
|
|
||||||
const renderServicesMessage = () => {
|
const ServicesMessage = () => {
|
||||||
let message = ReactStringReplace(MailPoet.I18n.t('useServices'), '%1$s', () => (
|
let message = ReactStringReplace(MailPoet.I18n.t('useServices'), '%1$s', () => (
|
||||||
<a
|
<a
|
||||||
href="https://www.briteverify.com"
|
href="https://www.briteverify.com"
|
||||||
@@ -101,7 +101,7 @@ class StepInputValidation extends Component {
|
|||||||
{MailPoet.I18n.t('emailAddressesWillBounce')}
|
{MailPoet.I18n.t('emailAddressesWillBounce')}
|
||||||
</p>
|
</p>
|
||||||
<p className="description">
|
<p className="description">
|
||||||
{renderServicesMessage()}
|
<ServicesMessage />
|
||||||
</p>
|
</p>
|
||||||
<label htmlFor="understand">
|
<label htmlFor="understand">
|
||||||
<input
|
<input
|
||||||
|
Reference in New Issue
Block a user