From 4477adacdce42d0f9e9549f330532fc869ae976d Mon Sep 17 00:00:00 2001 From: Niclas Edenvin Date: Fri, 27 Sep 2024 14:30:03 +0200 Subject: [PATCH] Change to new enum format for point of interest --- .../(public)/hotelreservation/select-hotel/map/page.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/[lang]/(live)/(public)/hotelreservation/select-hotel/map/page.tsx b/app/[lang]/(live)/(public)/hotelreservation/select-hotel/map/page.tsx index 1c66c16cb..89f4e62ca 100644 --- a/app/[lang]/(live)/(public)/hotelreservation/select-hotel/map/page.tsx +++ b/app/[lang]/(live)/(public)/hotelreservation/select-hotel/map/page.tsx @@ -9,7 +9,11 @@ import { setLang } from "@/i18n/serverContext" import styles from "./page.module.css" -import { PointOfInterest } from "@/types/hotel" +import { + PointOfInterest, + PointOfInterestCategoryNameEnum, + PointOfInterestGroupEnum, +} from "@/types/hotel" import { LangParams, PageArgs } from "@/types/params" export default async function SelectHotelMapPage({ @@ -36,7 +40,8 @@ export default async function SelectHotelMapPage({ }, name: hotel.hotelData.name, distance: hotel.hotelData.location.distanceToCentre, - category: "Hotel", + categoryName: PointOfInterestCategoryNameEnum.HOTEL, + group: PointOfInterestGroupEnum.LOCATION, })) return (