feat(SW-705): Updated URLs for hotelreservation

This commit is contained in:
Pontus Dreij
2024-11-18 14:05:07 +01:00
committed by Joakim Jäderberg
parent 293800f024
commit e078c59ac1
3 changed files with 8 additions and 32 deletions

View File

@@ -3,7 +3,7 @@ import { useParams } from "next/dist/client/components/navigation"
import { useIntl } from "react-intl"
import { Lang } from "@/constants/languages"
import { selectHotelMap } from "@/constants/routes/hotelReservation"
import { selectHotelMap, selectRate } from "@/constants/routes/hotelReservation"
import { mapFacilityToIcon } from "@/components/ContentType/HotelPage/data"
import ImageGallery from "@/components/ImageGallery"
@@ -150,9 +150,9 @@ export default function HotelCard({
size="small"
className={styles.button}
>
{/* TODO: Localize link and also use correct search params */}
{/* TODO: use correct search params */}
<Link
href={`/en/hotelreservation/select-rate?hotel=${hotelData.operaId}`}
href={`${selectRate[lang]}?hotel=${hotelData.operaId}`}
color="none"
keepSearchParams
>