feat(SW-325): added pois to the list and dynamic map

This commit is contained in:
Erik Tiekstra
2024-09-17 16:13:22 +02:00
parent 1729f4b9c7
commit e79f413003
44 changed files with 1078 additions and 318 deletions

View File

@@ -1,7 +1,9 @@
import type { PointOfInterest } from "@/types/hotel"
import type { Coordinates } from "../../maps/coordinates"
export interface DynamicMapProps {
apiKey: string
hotelName: string
coordinates: Coordinates
pointsOfInterest: PointOfInterest[]
}

View File

@@ -1,6 +0,0 @@
import type { Coordinates } from "../../maps/coordinates"
export interface DynamicMapContentProps {
hotelName: string
coordinates: Coordinates
}

View File

@@ -1,3 +1,6 @@
import { PointOfInterest } from "@/types/hotel"
export interface MapCardProps {
hotelName: string
pois: PointOfInterest[]
}

View File

@@ -0,0 +1,9 @@
import { PointOfInterest } from "@/types/hotel"
import type { Coordinates } from "../../maps/coordinates"
export interface MapContentProps {
coordinates: Coordinates
pointsOfInterest: PointOfInterest[]
activePoi: PointOfInterest["name"] | null
onActivePoiChange: (poi: PointOfInterest["name"] | null) => void
}

View File

@@ -0,0 +1,8 @@
import { PointOfInterest } from "@/types/hotel"
export interface SidebarProps {
hotelName: string
pointsOfInterest: PointOfInterest[]
activePoi: PointOfInterest["name"] | null
onActivePoiChange: (poi: PointOfInterest["name"] | null) => void
}

View File

@@ -25,6 +25,7 @@ export enum IconName {
CloseLarge = "CloseLarge",
Coffee = "Coffee",
Concierge = "Concierge",
Cultural = "Cultural",
DoorOpen = "DoorOpen",
ElectricBike = "ElectricBike",
Email = "Email",
@@ -40,6 +41,7 @@ export enum IconName {
Lock = "Lock",
Map = "Map",
Minus = "Minus",
Museum = "Museum",
Parking = "Parking",
Person = "Person",
People2 = "People2",
@@ -51,6 +53,9 @@ export enum IconName {
Sauna = "Sauna",
Search = "Search",
Service = "Service",
Shopping = "Shopping",
StarFilled = "StarFilled",
Train = "Train",
Tripadvisor = "Tripadvisor",
TshirtWash = "TshirtWash",
Wifi = "Wifi",

View File

@@ -0,0 +1,8 @@
import { VariantProps } from "class-variance-authority"
import { poiVariants } from "@/components/Maps/Markers/Poi/variants"
export interface PoiMarkerProps extends VariantProps<typeof poiVariants> {
size?: number
className?: string
}