feat: SW-683 SW-684 Prefill location & date in BW via query params
This commit is contained in:
@@ -33,7 +33,10 @@ export default function Form({ locations, type }: BookingWidgetFormProps) {
|
||||
|
||||
const bookingFlowPage =
|
||||
locationData.type == "cities" ? selectHotel[lang] : selectRate[lang]
|
||||
const bookingWidgetParams = new URLSearchParams(data.date)
|
||||
const bookingWidgetParams = new URLSearchParams({
|
||||
fromDate: data.date.from,
|
||||
toDate: data.date.to,
|
||||
})
|
||||
|
||||
if (locationData.type == "cities")
|
||||
bookingWidgetParams.set("city", locationData.name)
|
||||
|
||||
Reference in New Issue
Block a user