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