Merge branch 'develop' into feat/sw-386-header-fixes
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
import type { PointOfInterest } from "@/types/hotel"
|
||||
import type { Coordinates } from "../../maps/coordinates"
|
||||
|
||||
export interface DynamicMapProps {
|
||||
apiKey: string
|
||||
hotelName: string
|
||||
coordinates: Coordinates
|
||||
pointsOfInterest: PointOfInterest[]
|
||||
mapId: string
|
||||
}
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
import type { Coordinates } from "../../maps/coordinates"
|
||||
|
||||
export interface DynamicMapContentProps {
|
||||
hotelName: string
|
||||
coordinates: Coordinates
|
||||
}
|
||||
@@ -1,3 +1,6 @@
|
||||
import type { PointOfInterest } from "@/types/hotel"
|
||||
|
||||
export interface MapCardProps {
|
||||
hotelName: string
|
||||
pois: PointOfInterest[]
|
||||
}
|
||||
|
||||
10
types/components/hotelPage/map/mapContent.ts
Normal file
10
types/components/hotelPage/map/mapContent.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { Coordinates } from "@/types/components/maps/coordinates"
|
||||
import type { PointOfInterest } from "@/types/hotel"
|
||||
|
||||
export interface MapContentProps {
|
||||
coordinates: Coordinates
|
||||
pointsOfInterest: PointOfInterest[]
|
||||
activePoi: PointOfInterest["name"] | null
|
||||
mapId: string
|
||||
onActivePoiChange: (poi: PointOfInterest["name"] | null) => void
|
||||
}
|
||||
8
types/components/hotelPage/map/sidebar.ts
Normal file
8
types/components/hotelPage/map/sidebar.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import type { PointOfInterest } from "@/types/hotel"
|
||||
|
||||
export interface SidebarProps {
|
||||
hotelName: string
|
||||
pointsOfInterest: PointOfInterest[]
|
||||
activePoi: PointOfInterest["name"] | null
|
||||
onActivePoiChange: (poi: PointOfInterest["name"] | null) => void
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import { RoomData } from "@/types/hotel"
|
||||
import type { RoomData } from "@/types/hotel"
|
||||
|
||||
export interface RoomCardProps {
|
||||
id: string
|
||||
|
||||
@@ -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",
|
||||
|
||||
8
types/components/maps/poiMarker.ts
Normal file
8
types/components/maps/poiMarker.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { poiVariants } from "@/components/Maps/Markers/Poi/variants"
|
||||
|
||||
import type { VariantProps } from "class-variance-authority"
|
||||
|
||||
export interface PoiMarkerProps extends VariantProps<typeof poiVariants> {
|
||||
size?: number
|
||||
className?: string
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Coordinates } from "./coordinates"
|
||||
import type { Coordinates } from "./coordinates"
|
||||
|
||||
export type StaticMapProps = {
|
||||
city?: string
|
||||
@@ -8,4 +8,5 @@ export type StaticMapProps = {
|
||||
zoomLevel?: number
|
||||
mapType?: "roadmap" | "satellite" | "terrain" | "hybrid"
|
||||
altText: string
|
||||
mapId?: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user