Change to new enum format for point of interest

This commit is contained in:
Niclas Edenvin
2024-09-27 14:30:03 +02:00
parent 2d25496d79
commit 4477adacdc

View File

@@ -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 (