feat(SW-340): Added Hotel Card Listing on map

This commit is contained in:
Pontus Dreij
2024-11-06 15:02:56 +01:00
parent 378225f995
commit 7a49d4a393
11 changed files with 58 additions and 24 deletions

View File

@@ -4,6 +4,7 @@ import { Hotel } from "@/types/hotel"
export type HotelCardListingProps = {
hotelData: HotelData[]
type?: "map" | "listing"
}
export type HotelData = {

View File

@@ -2,4 +2,5 @@ import { HotelData } from "./hotelCardListingProps"
export type HotelCardProps = {
hotel: HotelData
type?: "map" | "listing"
}

View File

@@ -1,6 +1,9 @@
import { Coordinates } from "@/types/components/maps/coordinates"
import { HotelData } from "./hotelCardListingProps"
import type { Coordinates } from "@/types/components/maps/coordinates"
export interface HotelListingProps {
hotels: HotelData[]
// pointsOfInterest: PointOfInterest[]
// activePoi: PointOfInterest["name"] | null
// onActivePoiChange: (poi: PointOfInterest["name"] | null) => void
@@ -12,6 +15,7 @@ export interface SelectHotelMapProps {
hotelPins: HotelPin[]
mapId: string
isModal: boolean
hotels: HotelData[]
}
export type HotelPin = {