diff --git a/apps/ui/components/reservation/EditStep0.tsx b/apps/ui/components/reservation/EditStep0.tsx index 4d73dfb2d..94e8e6754 100644 --- a/apps/ui/components/reservation/EditStep0.tsx +++ b/apps/ui/components/reservation/EditStep0.tsx @@ -222,7 +222,7 @@ export function EditStep0({ <> {/* TODO on mobile in the design this is after the calendar but before action buttons */} diff --git a/apps/ui/components/reservation/EditStep1.tsx b/apps/ui/components/reservation/EditStep1.tsx index 9d3b78e57..f157fd55a 100644 --- a/apps/ui/components/reservation/EditStep1.tsx +++ b/apps/ui/components/reservation/EditStep1.tsx @@ -144,7 +144,7 @@ export function EditStep1({ <> { diff --git a/apps/ui/components/reservation/ReservationCancellation.tsx b/apps/ui/components/reservation/ReservationCancellation.tsx index dc9adbe5a..913083013 100644 --- a/apps/ui/components/reservation/ReservationCancellation.tsx +++ b/apps/ui/components/reservation/ReservationCancellation.tsx @@ -32,7 +32,7 @@ const infoCss = css` } `; -const StyledInfoCard = styled(ReservationInfoCard)` +const StyledReservationInfoCard = styled(ReservationInfoCard)` ${infoCss} `; @@ -105,7 +105,7 @@ export function ReservationCancellation(props: CancellationProps): JSX.Element { {reservation.recurringReservation ? ( ) : ( - + )} ` - /* stylelint-disable custom-property-pattern */ + --bg-color-complete: var(--color-silver-light); + --bg-color-pending: var(--color-gold-light); background-color: var( - --color-${({ $type }) => ($type === "complete" ? "silver" : "gold")}-light + ${({ $type }) => + $type === "complete" ? "--bg-color-complete" : "--bg-color-pending"} ); `; @@ -61,6 +61,8 @@ const Subheading = styled.p` margin: 0; `; +type Type = "pending" | "complete"; + type Props = { reservation: ReservationInfoCardFragment; type: Type; @@ -142,7 +144,7 @@ export function ReservationInfoCard({ {name} - {(type === "confirmed" || type === "complete") && ( + {type === "complete" && ( {t("reservations:reservationNumber")}:{" "} diff --git a/apps/ui/pages/reservations/[id]/confirmation.tsx b/apps/ui/pages/reservations/[id]/confirmation.tsx index b4efad856..83d784e3a 100644 --- a/apps/ui/pages/reservations/[id]/confirmation.tsx +++ b/apps/ui/pages/reservations/[id]/confirmation.tsx @@ -57,7 +57,7 @@ function Confirmation({ apiBaseUrl, reservation }: PropsNarrowed) { <> - +