Merged in feat/SW-2901-hotel-pins (pull request #2206)

feat(SW-2901): add dynamic hotel markers

* feat(SW-2901): add dynamic hotel markers

* fix(SW-2901): update type


Approved-by: Christian Andolf
Approved-by: Erik Tiekstra
This commit is contained in:
Matilda Landström
2025-05-26 13:56:03 +00:00
parent 7e17e9cf4c
commit cf6c794c59
12 changed files with 79 additions and 25 deletions

View File

@@ -2,13 +2,15 @@ import type { ReactElement } from "react"
import type { HotelPin } from "@/types/components/hotelReservation/selectHotel/map"
import type { Coordinates } from "@/types/components/maps/coordinates"
import type { MarkerInfo } from "@/types/components/maps/marker"
import type { PointOfInterest } from "@/types/hotel"
export interface InteractiveMapProps {
coordinates: Coordinates
pointsOfInterest?: PointOfInterest[]
activePoi?: PointOfInterest["name"] | null
hotelPins?: HotelPin[]
pointsOfInterest?: PointOfInterest[]
markerInfo?: MarkerInfo
mapId: string
closeButton: ReactElement
fitBounds?: boolean

View File

@@ -1,7 +1,9 @@
import type { MarkerInfo } from "@/types/components/maps/marker"
import type { Coordinates } from "../../maps/coordinates"
export type StaticMapProps = {
coordinates: Coordinates
hotelName: string
zoomLevel?: number
markerInfo: MarkerInfo
}

View File

@@ -0,0 +1,4 @@
export type MarkerInfo = {
hotelId: string
hotelType: string
}

View File

@@ -1,5 +1,6 @@
import type { z } from "zod"
import type { MarkerInfo } from "@/types/components/maps/marker"
import type {
destinationPagesHotelDataSchema,
hotelSchema,
@@ -70,6 +71,7 @@ export type PoiMapMarkersProps = {
coordinates: { lat: number; lng: number }
onActivePoiChange?: (poiName: string | null) => void
pointsOfInterest: PointOfInterest[]
markerInfo: MarkerInfo
}
export type HotelTripAdvisor =
| NonNullable<HotelRatings>["tripAdvisor"]