feat(SW-1558): Added link to static map on hotel pages

Approved-by: Matilda Landström
This commit is contained in:
Erik Tiekstra
2025-08-26 05:58:01 +00:00
parent 7561e996c6
commit 091c46f85c

View File

@@ -3,6 +3,7 @@ import { Suspense } from "react"
import { dt } from "@scandic-hotels/common/dt"
import { safeTry } from "@scandic-hotels/common/utils/safeTry"
import Link from "@scandic-hotels/design-system/Link"
import {
getHotel,
@@ -237,11 +238,13 @@ export default async function HotelPage({ hotelId }: HotelPageProps) {
</main>
<aside className={styles.mapContainer}>
<MapWithCardWrapper>
<StaticMap
coordinates={coordinates}
hotelName={name}
markerInfo={{ hotelType, hotelId }}
/>
<Link href="?view=map" keepSearchParams>
<StaticMap
coordinates={coordinates}
hotelName={name}
markerInfo={{ hotelType, hotelId }}
/>
</Link>
<MapCard
hotelName={name}
pois={getFilteredSlicedPois(pointsOfInterest)}