Remove unnecessary function
This commit is contained in:
committed by
M. Shull
parent
d1c3dcff80
commit
e7c3dd44ac
@@ -9,22 +9,6 @@ const PreviousNextStepButtons = ({
|
||||
onPreviousAction,
|
||||
onNextAction,
|
||||
}) => {
|
||||
const showPreviousStep = () => {
|
||||
if (hidePrevious) return null;
|
||||
return (
|
||||
<>
|
||||
<button
|
||||
className="button-primary wysija button"
|
||||
type="button"
|
||||
onClick={() => onPreviousAction()}
|
||||
>
|
||||
{MailPoet.I18n.t('previousStep')}
|
||||
</button>
|
||||
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
const nextStepClasses = classNames(
|
||||
'button-primary',
|
||||
'wysija',
|
||||
@@ -32,7 +16,18 @@ const PreviousNextStepButtons = ({
|
||||
);
|
||||
return (
|
||||
<div className="mailpoet_import_step_buttons">
|
||||
{showPreviousStep()}
|
||||
{!hidePrevious && (
|
||||
<>
|
||||
<button
|
||||
className="button-primary wysija button"
|
||||
type="button"
|
||||
onClick={() => onPreviousAction()}
|
||||
>
|
||||
{MailPoet.I18n.t('previousStep')}
|
||||
</button>
|
||||
|
||||
</>
|
||||
)}
|
||||
<button
|
||||
type="button"
|
||||
data-automation-id="import-next-step"
|
||||
|
Reference in New Issue
Block a user