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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
4
apps/scandic-web/types/components/maps/marker.ts
Normal file
4
apps/scandic-web/types/components/maps/marker.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export type MarkerInfo = {
|
||||
hotelId: string
|
||||
hotelType: string
|
||||
}
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user