Merged in feat/SW-1813 (pull request #1516)
Feat/SW-1813 * feat(SW-1652): handle linkedReservations fetching * feat: add linkedReservation retry functionality * chore: align naming * feat(SW-1813): Add booking confirmation PriceDetailsModal Approved-by: Simon.Emanuelsson
This commit is contained in:
@@ -10,14 +10,25 @@ import type { BookingConfirmationStore } from "@/types/contexts/booking-confirma
|
||||
import type { BookingConfirmationProviderProps } from "@/types/providers/booking-confirmation"
|
||||
|
||||
export default function BookingConfirmationProvider({
|
||||
bookingCode,
|
||||
children,
|
||||
currencyCode,
|
||||
fromDate,
|
||||
toDate,
|
||||
rooms,
|
||||
vat,
|
||||
}: BookingConfirmationProviderProps) {
|
||||
const storeRef = useRef<BookingConfirmationStore>()
|
||||
|
||||
if (!storeRef.current) {
|
||||
const initialData = { rooms, currencyCode }
|
||||
const initialData = {
|
||||
bookingCode,
|
||||
currencyCode,
|
||||
fromDate,
|
||||
toDate,
|
||||
rooms,
|
||||
vat,
|
||||
}
|
||||
storeRef.current = createBookingConfirmationStore(initialData)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user