fix(SW-1168) Show only hotel cards that are visible on map

This commit is contained in:
Pontus Dreij
2024-12-12 10:04:16 +01:00
parent f5fb64729c
commit c3e56d5b49
6 changed files with 211 additions and 119 deletions

View File

@@ -1,8 +1,6 @@
import { ReactElement } from "react"
import { HotelData } from "../../hotelReservation/selectHotel/hotelCardListingProps"
import { HotelPin } from "../../hotelReservation/selectHotel/map"
import type { HotelPin } from "@/types/components/hotelReservation/selectHotel/map"
import type { Coordinates } from "@/types/components/maps/coordinates"
import type { PointOfInterest } from "@/types/hotel"
@@ -13,5 +11,6 @@ export interface InteractiveMapProps {
hotelPins?: HotelPin[]
mapId: string
closeButton: ReactElement
onMapLoad?: () => void
onActivePoiChange?: (poi: PointOfInterest["name"] | null) => void
}