Merged in feat/SW-344-hotel-map-pins-mobile (pull request #880)

Feat/SW-344 hotel map pins mobile

Approved-by: Niclas Edenvin
This commit is contained in:
Pontus Dreij
2024-11-13 13:19:44 +00:00
22 changed files with 323 additions and 113 deletions

View File

@@ -13,15 +13,13 @@ import type { Coordinates } from "@/types/components/maps/coordinates"
export interface HotelListingProps {
hotels: HotelData[]
activeHotelPin?: string | null
onHotelCardHover?: (hotelName: string | null) => void
setActiveHotelPin: (hotelName: string | null) => void
}
export interface SelectHotelMapProps {
apiKey: string
coordinates: Coordinates
hotelPins: HotelPin[]
mapId: string
isModal: boolean
hotels: HotelData[]
}
@@ -40,6 +38,7 @@ export type HotelPin = {
}[]
amenities: Filter[]
ratings: number | null
operaId: string
}
export interface HotelListingMapContentProps {
@@ -50,6 +49,12 @@ export interface HotelListingMapContentProps {
export interface HotelCardDialogProps {
isOpen: boolean
pin: HotelPin
data: HotelPin
handleClose: (event: { stopPropagation: () => void }) => void
}
export interface HotelCardDialogListingProps {
hotels: HotelData[]
activeCard: string | null | undefined
onActiveCardChange: (hotelName: string | null) => void
}