Skip to content

Commit

Permalink
add: loading states to reservation funnel pages
Browse files Browse the repository at this point in the history
  • Loading branch information
vincit-matu committed Feb 22, 2024
1 parent 14236b1 commit d80b3e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/ui/components/reservation/Step0.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ const Step0 = ({
type="submit"
iconRight={<IconArrowRight aria-hidden />}
data-test="reservation__button--update"
isLoading={isSubmitted}
>
{t("reservationCalendar:nextStep")}
</MediumButton>
Expand Down
1 change: 1 addition & 0 deletions apps/ui/components/reservation/Step1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ const Step1 = ({
type="submit"
iconRight={<IconArrowRight aria-hidden />}
data-test="reservation__button--update"
isLoading={isSubmitted}
>
{t(
`reservationCalendar:${
Expand Down
2 changes: 2 additions & 0 deletions apps/ui/components/reservation/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export const ActionContainer = styled.div`
@media (min-width: ${breakpoints.s}) {
& > button:first-of-type {
order: 1;
{/* set min-width so the buttons retains their placements even when isLoading is triggered */}
min-width: 130px;
}
display: flex;
Expand Down

0 comments on commit d80b3e6

Please sign in to comment.