feat(SW-826): Added Google Maps Link
This commit is contained in:
@@ -46,3 +46,9 @@
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.googleMaps {
|
||||
text-decoration: none;
|
||||
font-family: var(--typography-Body-Regular-fontFamily);
|
||||
color: var(--Base-Text-Medium-contrast);
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ import styles from "./contact.module.css"
|
||||
import { ContactProps } from "@/types/components/hotelReservation/selectHotel/selectHotel"
|
||||
|
||||
export default function Contact({ hotel }: ContactProps) {
|
||||
console.log(hotel)
|
||||
const lang = useLang()
|
||||
const intl = useIntl()
|
||||
|
||||
@@ -32,9 +33,12 @@ export default function Contact({ hotel }: ContactProps) {
|
||||
<span className={styles.heading}>
|
||||
{intl.formatMessage({ id: "Driving directions" })}
|
||||
</span>
|
||||
<Link href="#" color="peach80">
|
||||
<a
|
||||
href={`https://www.google.com/maps/dir/?api=1&destination=${hotel.location.latitude},${hotel.location.longitude}`}
|
||||
className={styles.googleMaps}
|
||||
>
|
||||
Google Maps
|
||||
</Link>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<span className={styles.heading}>
|
||||
|
||||
Reference in New Issue
Block a user