Skip to content

Commit

Permalink
Change buttons order in assessment wizard (#73)
Browse files Browse the repository at this point in the history
Signed-off-by: Montse Ortega <mortegag@redhat.com>
  • Loading branch information
ammont82 authored Jan 21, 2025
1 parent 0713ff9 commit 45df403
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions apps/demo/src/migration-wizard/MigrationWizard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,15 @@ export const CustomWizardFooter: React.FC<CustomWizardFooterPropType> = ({
const { goToNextStep, goToPrevStep, goToStepById } = useWizardContext();
return (
<>
<WizardFooterWrapper>
<WizardFooterWrapper>
<Button
ouiaId="wizard-back-btn"
variant="secondary"
onClick={goToPrevStep}
isDisabled={isBackDisabled}
>
Back
</Button>
<Button
ouiaId="wizard-next-btn"
variant="primary"
Expand All @@ -52,14 +60,6 @@ export const CustomWizardFooter: React.FC<CustomWizardFooterPropType> = ({
>
{nextButtonText ?? "Next"}
</Button>
<Button
ouiaId="wizard-back-btn"
variant="secondary"
onClick={goToPrevStep}
isDisabled={isBackDisabled}
>
Back
</Button>
{!isCancelHidden && (
<Button
ouiaId="wizard-cancel-btn"
Expand Down

0 comments on commit 45df403

Please sign in to comment.