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

@@ -30,8 +30,14 @@ export default function BookingSummary({ hotel }: BookingSummaryProps) {
const bookedRoom = useMyStayRoomDetailsStore((state) => state.bookedRoom)
const { isCancelled, createDateTime, guaranteeInfo, checkInDate, isPrePaid } =
bookedRoom
const {
isCancelled,
createDateTime,
guaranteeInfo,
checkInDate,
isPrePaid,
priceType,
} = bookedRoom
const directionsUrl = `https://www.google.com/maps/dir/?api=1&destination=${hotel.location.latitude},${hotel.location.longitude}`
@@ -57,7 +63,9 @@ export default function BookingSummary({ hotel }: BookingSummaryProps) {
</Typography>
<div className={styles.bookingSummaryContent}>
<SummaryCard
title={<TotalPrice variant="Body/Paragraph/mdBold" />}
title={
<TotalPrice variant="Body/Paragraph/mdBold" type={priceType} />
}
image={{
src: "/_static/img/scandic-coin.svg",
alt: "Scandic coin",