Merged in feat/BOOK-479-scandic-go-hotels-rm-brf- (pull request #3143)
feat(BOOK-479): Updated breakfast UI for ScandicGo hotels Approved-by: Erik Tiekstra
This commit is contained in:
@@ -9,15 +9,23 @@ import { mapToPrice } from "./mapToPrice"
|
||||
import type { Price } from "../../../types/price"
|
||||
|
||||
export default function PriceDetails() {
|
||||
const { bookingCode, currency, fromDate, rooms, vat, toDate } =
|
||||
useBookingConfirmationStore((state) => ({
|
||||
bookingCode: state.bookingCode ?? undefined,
|
||||
currency: state.currencyCode,
|
||||
fromDate: state.fromDate,
|
||||
rooms: state.rooms,
|
||||
toDate: state.toDate,
|
||||
vat: state.vat,
|
||||
}))
|
||||
const {
|
||||
bookingCode,
|
||||
currency,
|
||||
hotelOffersBreakfast,
|
||||
fromDate,
|
||||
rooms,
|
||||
vat,
|
||||
toDate,
|
||||
} = useBookingConfirmationStore((state) => ({
|
||||
bookingCode: state.bookingCode ?? undefined,
|
||||
currency: state.currencyCode,
|
||||
hotelOffersBreakfast: state.hotelOffersBreakfast,
|
||||
fromDate: state.fromDate,
|
||||
rooms: state.rooms,
|
||||
toDate: state.toDate,
|
||||
vat: state.vat,
|
||||
}))
|
||||
|
||||
if (!rooms[0]) {
|
||||
return null
|
||||
@@ -135,6 +143,7 @@ export default function PriceDetails() {
|
||||
vat={vat}
|
||||
defaultCurrency={currency}
|
||||
isCampaignRate={isCampaignRate}
|
||||
hotelOffersBreakfast={hotelOffersBreakfast}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user