Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit d80b3e6

Browse files
committed
add: loading states to reservation funnel pages
1 parent 14236b1 commit d80b3e6

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

apps/ui/components/reservation/Step0.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ const Step0 = ({
195195
type="submit"
196196
iconRight={<IconArrowRight aria-hidden />}
197197
data-test="reservation__button--update"
198+
isLoading={isSubmitted}
198199
>
199200
{t("reservationCalendar:nextStep")}
200201
</MediumButton>

apps/ui/components/reservation/Step1.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ const Step1 = ({
350350
type="submit"
351351
iconRight={<IconArrowRight aria-hidden />}
352352
data-test="reservation__button--update"
353+
isLoading={isSubmitted}
353354
>
354355
{t(
355356
`reservationCalendar:${

apps/ui/components/reservation/styles.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ export const ActionContainer = styled.div`
2222
@media (min-width: ${breakpoints.s}) {
2323
& > button:first-of-type {
2424
order: 1;
25+
{/* set min-width so the buttons retains their placements even when isLoading is triggered */}
26+
min-width: 130px;
2527
}
2628
2729
display: flex;

0 commit comments

Comments
 (0)