feat: pass filters as prop
This commit is contained in:
@@ -16,9 +16,13 @@ export default async function SelectHotelPage({
|
||||
})
|
||||
const hotels = [attributes]
|
||||
|
||||
const hotelFitlers = await serverClient().hotel.getFilters({
|
||||
hotelId: "d98c7ab1-ebaa-4102-b351-758daf1ddf55",
|
||||
})
|
||||
|
||||
return (
|
||||
<main className={styles.main}>
|
||||
<HotelFilter />
|
||||
<HotelFilter filter={hotelFitlers} />
|
||||
<section className={styles.section}>
|
||||
{hotels.map((hotel) => (
|
||||
<HotelCard key={hotel.name} hotel={hotel} />
|
||||
|
||||
Reference in New Issue
Block a user