feat(SW-176): set up route

This commit is contained in:
Fredrik Thorsson
2024-08-28 13:44:48 +02:00
parent deb3151edc
commit 9112941026
3 changed files with 29 additions and 8 deletions

View File

@@ -20,6 +20,7 @@ export default async function SelectHotelPage({
setLang(params.lang)
// TODO: Use real endpoint.
const tempSearchTerm = "Stockholm"
const hotel = tempHotelData.data.attributes
const hotels = [hotel]
@@ -27,7 +28,18 @@ export default async function SelectHotelPage({
hotelId: "879",
})
const tempSearchTerm = "Stockholm"
const availability = await serverClient().hotel.availability({
cityId: "8ec4bba3-1c38-4606-82d1-bbe3f6738e54",
roomStayStartDate: "2024-11-01",
roomStayEndDate: "2024-11-02",
adults: 1,
})
const filterAvailability = availability?.availability.data.filter(
(hotels) => hotels.attributes.status === "Available"
)
console.log(filterAvailability)
return (
<main className={styles.main}>