From 798d19d3c81b5135dde0f4e9042addaab2211e45 Mon Sep 17 00:00:00 2001 From: Fredrik Thorsson Date: Tue, 6 Aug 2024 10:16:46 +0200 Subject: [PATCH] feat: filter route changes --- .../hotelreservation/select-hotel/page.tsx | 2 +- .../SelectHotel/HotelFilter/index.tsx | 20 ++++---- server/routers/hotels/output.ts | 4 +- server/routers/hotels/tempFilterData.json | 48 +++++++++---------- .../selectHotel/hotelFilterProps.ts | 2 +- 5 files changed, 37 insertions(+), 39 deletions(-) diff --git a/app/[lang]/(live)/(public)/hotelreservation/select-hotel/page.tsx b/app/[lang]/(live)/(public)/hotelreservation/select-hotel/page.tsx index 609c9037e..e34e008cf 100644 --- a/app/[lang]/(live)/(public)/hotelreservation/select-hotel/page.tsx +++ b/app/[lang]/(live)/(public)/hotelreservation/select-hotel/page.tsx @@ -22,7 +22,7 @@ export default async function SelectHotelPage({ return (
- +
{hotels.map((hotel) => ( diff --git a/components/HotelReservation/SelectHotel/HotelFilter/index.tsx b/components/HotelReservation/SelectHotel/HotelFilter/index.tsx index 6c84497ef..8b85cd28b 100644 --- a/components/HotelReservation/SelectHotel/HotelFilter/index.tsx +++ b/components/HotelReservation/SelectHotel/HotelFilter/index.tsx @@ -4,35 +4,35 @@ import styles from "./hotelFilter.module.css" import { HotelFilterProps } from "@/types/components/hotelReservation/selectHotel/hotelFilterProps" -export default async function HotelFilter({ filter }: HotelFilterProps) { +export default async function HotelFilter({ filters }: HotelFilterProps) { const { formatMessage } = await getIntl() return (