feat(SW-1111) Link to google maps

This commit is contained in:
Pontus Dreij
2024-12-06 14:00:30 +01:00
parent 9204eb6cca
commit c610b4f532

View File

@@ -96,15 +96,21 @@ function HotelCard({
{hotelData.address.streetAddress}, {hotelData.address.city} {hotelData.address.streetAddress}, {hotelData.address.city}
</Caption> </Caption>
</address> </address>
<Link <Caption color="baseTextMediumContrast" type="underline" asChild>
className={styles.addressMobile} <a
href={`${selectHotelMap(lang)}?selectedHotel=${hotelData.name}`} href={`https://www.google.com/maps/dir/?api=1&destination=${hotelData.location.latitude},${hotelData.location.longitude}`}
keepSearchParams className={styles.googleMaps}
> target="_blank"
<Caption color="baseTextMediumContrast" type="underline"> aria-label={intl.formatMessage({
id: "Driving directions",
})}
title={intl.formatMessage({
id: "Driving directions",
})}
>
{hotelData.address.streetAddress}, {hotelData.address.city} {hotelData.address.streetAddress}, {hotelData.address.city}
</Caption> </a>
</Link> </Caption>
<div> <div>
<Divider variant="vertical" color="subtle" /> <Divider variant="vertical" color="subtle" />
</div> </div>