Merged in feat/SW-1676-modify-contact-details-my-stay-anonymous (pull request #1468)
Feat/SW-1676 modify contact details my stay anonymous * feat(SW-1676): Modify guest details step 1 * feat(SW-1676) Integration to api to update guest details * feat(SW-1676) Reuse of old modal * feat(SW-1676) updated modify guest * feat(SW-1676) cleanup * feat(SW-1676) updated myStayReturnRoute to sessionStorage Approved-by: Niclas Edenvin
This commit is contained in:
@@ -26,17 +26,19 @@ import SummaryCard from "./SummaryCard"
|
||||
|
||||
import styles from "./bookingSummary.module.css"
|
||||
|
||||
import type { Hotel } from "@/types/hotel"
|
||||
import type { Hotel, Room } from "@/types/hotel"
|
||||
import type { BookingConfirmation } from "@/types/trpc/routers/booking/confirmation"
|
||||
|
||||
interface BookingSummaryProps {
|
||||
booking: BookingConfirmation["booking"]
|
||||
hotel: Hotel
|
||||
room: Room | null
|
||||
}
|
||||
|
||||
export default function BookingSummary({
|
||||
booking,
|
||||
hotel,
|
||||
room,
|
||||
}: BookingSummaryProps) {
|
||||
const intl = useIntl()
|
||||
const lang = useLang()
|
||||
@@ -55,12 +57,10 @@ export default function BookingSummary({
|
||||
// Add room details
|
||||
addRoomDetails({
|
||||
id: booking.confirmationNumber ?? "",
|
||||
roomName: booking.roomTypeCode || "Main Room",
|
||||
roomTypeCode: booking.roomTypeCode || "",
|
||||
rateDefinition: booking.rateDefinition,
|
||||
isMainBooking: true,
|
||||
roomName: room?.name ?? booking.roomTypeCode ?? "",
|
||||
isCancelable: booking.isCancelable,
|
||||
})
|
||||
}, [booking, addRoomPrice, addRoomDetails])
|
||||
}, [booking, room, addRoomPrice, addRoomDetails])
|
||||
|
||||
const directionsUrl = `https://www.google.com/maps/dir/?api=1&destination=${hotel.location.latitude},${hotel.location.longitude}`
|
||||
const isPaid =
|
||||
|
||||
Reference in New Issue
Block a user