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 { 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)}
|
||||
|
||||
Reference in New Issue
Block a user