Merged in fix/SW-3481-map-view-pin-highlighted (pull request #2814)

fix(SW-3481): highlight pin and min width to 900 to avoid duplicate hotelcards

* fix(SW-3481): highlight pin and min width to 900 to avoid duplicate hotelcards


Approved-by: Matilda Landström
This commit is contained in:
Bianca Widstam
2025-09-17 07:59:16 +00:00
parent 34389837ae
commit a144f84566
2 changed files with 2 additions and 1 deletions

View File

@@ -265,6 +265,7 @@ export function SelectHotelMapContent({
},
}
})}
activeHotelPin={hotelMapStore.activeHotel}
mapId={mapId}
onTilesLoaded={debouncedUpdateHotelCards}
fitBounds={isAboveMobile || !hotelMapStore.activeHotel}

View File

@@ -33,7 +33,7 @@ export function HotelListingMapContent({
lang,
onClickHotel,
}: HotelListingMapContentProps) {
const isDesktop = useMediaQuery('(min-width: 768px)')
const isDesktop = useMediaQuery('(min-width: 900px)')
const toggleActiveHotelPin = (
args: { hotelName: string; hotelId: string } | null