Merged in feat(SW-2083)-missing-booking-codes-scenarios-my-stay (pull request #1680)

Feat(SW-2083) missing booking codes scenarios my stay

* feat(SW-2083) Show points instead of reward nights

* feat(SW-2083) added support for cheque and voucher for totalPrice


Approved-by: Niclas Edenvin
This commit is contained in:
Pontus Dreij
2025-03-31 11:42:47 +00:00
parent 7434f30c20
commit b48053b8b4
23 changed files with 240 additions and 33 deletions

View File

@@ -59,6 +59,7 @@ export default function ActionPanel({ hotel }: ActionPanelProps) {
createDateTime,
canChangeDate,
isPrePaid,
priceType,
} = bookedRoom
const datetimeIsInThePast = useMemo(
@@ -71,6 +72,7 @@ export default function ActionPanel({ hotel }: ActionPanelProps) {
datetimeIsInThePast,
isCancelled: bookedRoom.isCancelled,
isPrePaid,
isRewardNight: priceType === "points",
})
const isCancelable = checkCancelable({