Merged in feat/BOOK-377-keep-booking-widget-state (pull request #2894)
feat(BOOK-377): keep dates and rooms & guest in session storage * feat(BOOK-377): keep dates and rooms & guest in session storage * feat(BOOK-377): extract to hook and reuse Approved-by: Erik Tiekstra
This commit is contained in:
@@ -27,14 +27,8 @@ export function selectHotel(lang: Lang) {
|
||||
export function selectHotelMap(lang: Lang) {
|
||||
return `${hotelreservation(lang)}/select-hotel/map`
|
||||
}
|
||||
|
||||
export function selectRateWithParams(
|
||||
lang: Lang,
|
||||
hotelId: string,
|
||||
fromdate: string,
|
||||
todate: string
|
||||
) {
|
||||
return `${hotelreservation(lang)}/select-rate?room%5B0%5D.adults=1&fromdate=${fromdate}&todate=${todate}&hotel=${hotelId}`
|
||||
export function selectRateWithParams(lang: Lang, params: URLSearchParams) {
|
||||
return `${hotelreservation(lang)}/select-rate?${params.toString()}`
|
||||
}
|
||||
|
||||
export function alternativeHotels(lang: Lang) {
|
||||
|
||||
Reference in New Issue
Block a user