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