feat(SW-1730): add button to room sidepeek on hotelpage to select rate page for the hotel

This commit is contained in:
Michael Zetterberg
2025-03-14 14:19:12 +01:00
parent 540402b969
commit 33239f1f91
4 changed files with 32 additions and 13 deletions

View File

@@ -44,6 +44,16 @@ export function selectRate(lang) {
return `${hotelreservation(lang)}/select-rate`
}
/**
* @param {Lang} lang
* @param {string} hotelId
* @param {string} fromdate
* @param {string} todate
*/
export function selectRateWithParams(lang, hotelId, fromdate, todate) {
return `${hotelreservation(lang)}/select-rate?room%5B0%5D.adults=1&fromdate=${fromdate}&todate=${todate}&hotel=${hotelId}`
}
/**
* @param {Lang} lang
*/