feat(SW-1111) Link to google maps
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user