fix: make sure session storage is cleaner whenever user is no longer in the booking flow

This commit is contained in:
Simon Emanuelsson
2024-11-19 14:25:55 +01:00
parent 4d8bbfdd78
commit 1aeed2e9ca
6 changed files with 37 additions and 17 deletions

View File

@@ -5,7 +5,7 @@
/**
* @param {Lang} lang
*/
function base(lang) {
export function hotelreservation(lang) {
return `/${lang}/hotelreservation`
}
@@ -13,47 +13,47 @@ function base(lang) {
* @param {Lang} lang
*/
export function bookingConfirmation(lang) {
return `${base(lang)}/booking-confirmation`
return `${hotelreservation(lang)}/booking-confirmation`
}
/**
* @param {Lang} lang
*/
export function details(lang) {
return `${base(lang)}/details`
return `${hotelreservation(lang)}/details`
}
/**
* @param {Lang} lang
*/
export function payment(lang) {
return `${base(lang)}/payment`
return `${hotelreservation(lang)}/payment`
}
/**
* @param {Lang} lang
*/
export function selectBed(lang) {
return `${base(lang)}/select-bed`
return `${hotelreservation(lang)}/select-bed`
}
/**
* @param {Lang} lang
*/
export function selectHotel(lang) {
return `${base(lang)}/select-hotel`
return `${hotelreservation(lang)}/select-hotel`
}
/**
* @param {Lang} lang
*/
export function selectHotelMap(lang) {
return `${base(lang)}/select-hotel/map`
return `${hotelreservation(lang)}/select-hotel/map`
}
/**
* @param {Lang} lang
*/
export function selectRate(lang) {
return `${base(lang)}/select-rate`
return `${hotelreservation(lang)}/select-rate`
}