Merged in fix/STAY-124-change-dates (pull request #3199)

Fix/STAY-124 change dates

* fix: handle change dates for different rate types

* fix: update wrong spelling in cancellation rules

* fix: add hover state on links

* fix: handle multiroom scenario


Approved-by: Erik Tiekstra
This commit is contained in:
Christel Westerberg
2025-11-24 09:51:16 +00:00
parent 168813ec60
commit f34e88db7c
16 changed files with 235 additions and 131 deletions

View File

@@ -27,11 +27,11 @@ import type { Room } from "../../../types/stores/booking-confirmation"
function getRate(cancellationRule: RateDefinition["cancellationRule"] | null) {
switch (cancellationRule) {
case "CancellableBefore6PM":
case CancellationRuleEnum.CancellableBefore6PM:
return RateEnum.flex
case "Changeable":
case CancellationRuleEnum.Changeable:
return RateEnum.change
case "NotCancellable":
case CancellationRuleEnum.NotCancellable:
return RateEnum.save
default:
return ""