Remove unnecessary function
This commit is contained in:
committed by
M. Shull
parent
d1c3dcff80
commit
e7c3dd44ac
@@ -9,9 +9,14 @@ const PreviousNextStepButtons = ({
|
|||||||
onPreviousAction,
|
onPreviousAction,
|
||||||
onNextAction,
|
onNextAction,
|
||||||
}) => {
|
}) => {
|
||||||
const showPreviousStep = () => {
|
const nextStepClasses = classNames(
|
||||||
if (hidePrevious) return null;
|
'button-primary',
|
||||||
|
'wysija',
|
||||||
|
{ 'button-disabled': !canGoNext },
|
||||||
|
);
|
||||||
return (
|
return (
|
||||||
|
<div className="mailpoet_import_step_buttons">
|
||||||
|
{!hidePrevious && (
|
||||||
<>
|
<>
|
||||||
<button
|
<button
|
||||||
className="button-primary wysija button"
|
className="button-primary wysija button"
|
||||||
@@ -22,17 +27,7 @@ const PreviousNextStepButtons = ({
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
</>
|
</>
|
||||||
);
|
)}
|
||||||
};
|
|
||||||
|
|
||||||
const nextStepClasses = classNames(
|
|
||||||
'button-primary',
|
|
||||||
'wysija',
|
|
||||||
{ 'button-disabled': !canGoNext },
|
|
||||||
);
|
|
||||||
return (
|
|
||||||
<div className="mailpoet_import_step_buttons">
|
|
||||||
{showPreviousStep()}
|
|
||||||
<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