feat(SW-189): added translations and some minor changes
This commit is contained in:
7
types/components/hotelPage/map/dynamicMap.ts
Normal file
7
types/components/hotelPage/map/dynamicMap.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import type { Coordinates } from "../../maps/coordinates"
|
||||
|
||||
export interface DynamicMapProps {
|
||||
apiKey: string
|
||||
hotelName: string
|
||||
coordinates: Coordinates
|
||||
}
|
||||
6
types/components/hotelPage/map/dynamicMapContent.ts
Normal file
6
types/components/hotelPage/map/dynamicMapContent.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { Coordinates } from "../../maps/coordinates"
|
||||
|
||||
export interface DynamicMapContentProps {
|
||||
hotelName: string
|
||||
coordinates: Coordinates
|
||||
}
|
||||
@@ -1,7 +1,4 @@
|
||||
type Coordinates = {
|
||||
lat: number
|
||||
lng: number
|
||||
}
|
||||
import type { Coordinates } from "../../maps/coordinates"
|
||||
|
||||
export type StaticMapProps = {
|
||||
coordinates: Coordinates
|
||||
@@ -38,6 +38,7 @@ export enum IconName {
|
||||
Instagram = "Instagram",
|
||||
Location = "Location",
|
||||
Lock = "Lock",
|
||||
Map = "Map",
|
||||
Minus = "Minus",
|
||||
Parking = "Parking",
|
||||
Person = "Person",
|
||||
|
||||
4
types/components/maps/coordinates.ts
Normal file
4
types/components/maps/coordinates.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export interface Coordinates {
|
||||
lat: number
|
||||
lng: number
|
||||
}
|
||||
11
types/components/maps/staticMap.ts
Normal file
11
types/components/maps/staticMap.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Coordinates } from "./coordinates"
|
||||
|
||||
export type StaticMapProps = {
|
||||
city?: string
|
||||
coordinates?: Coordinates
|
||||
width: number
|
||||
height: number
|
||||
zoomLevel?: number
|
||||
mapType?: "roadmap" | "satellite" | "terrain" | "hybrid"
|
||||
altText: string
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
export type StaticMapProps = {
|
||||
city: string
|
||||
width: number
|
||||
height: number
|
||||
zoomLevel: number
|
||||
mapType: "roadmap" | "satellite" | "terrain" | "hybrid"
|
||||
}
|
||||
Reference in New Issue
Block a user