feat(SW-1558): Added link to static map on hotel pages
Approved-by: Matilda Landström
This commit is contained in:
@@ -3,6 +3,7 @@ import { Suspense } from "react"
|
|||||||
|
|
||||||
import { dt } from "@scandic-hotels/common/dt"
|
import { dt } from "@scandic-hotels/common/dt"
|
||||||
import { safeTry } from "@scandic-hotels/common/utils/safeTry"
|
import { safeTry } from "@scandic-hotels/common/utils/safeTry"
|
||||||
|
import Link from "@scandic-hotels/design-system/Link"
|
||||||
|
|
||||||
import {
|
import {
|
||||||
getHotel,
|
getHotel,
|
||||||
@@ -237,11 +238,13 @@ export default async function HotelPage({ hotelId }: HotelPageProps) {
|
|||||||
</main>
|
</main>
|
||||||
<aside className={styles.mapContainer}>
|
<aside className={styles.mapContainer}>
|
||||||
<MapWithCardWrapper>
|
<MapWithCardWrapper>
|
||||||
<StaticMap
|
<Link href="?view=map" keepSearchParams>
|
||||||
coordinates={coordinates}
|
<StaticMap
|
||||||
hotelName={name}
|
coordinates={coordinates}
|
||||||
markerInfo={{ hotelType, hotelId }}
|
hotelName={name}
|
||||||
/>
|
markerInfo={{ hotelType, hotelId }}
|
||||||
|
/>
|
||||||
|
</Link>
|
||||||
<MapCard
|
<MapCard
|
||||||
hotelName={name}
|
hotelName={name}
|
||||||
pois={getFilteredSlicedPois(pointsOfInterest)}
|
pois={getFilteredSlicedPois(pointsOfInterest)}
|
||||||
|
|||||||
Reference in New Issue
Block a user