diff --git a/canopeum_frontend/src/components/social/ContactCard.tsx b/canopeum_frontend/src/components/social/ContactCard.tsx index 1c214dc6a..27c367931 100644 --- a/canopeum_frontend/src/components/social/ContactCard.tsx +++ b/canopeum_frontend/src/components/social/ContactCard.tsx @@ -18,6 +18,10 @@ type Props = { const ContactCard = ({ contact, viewMode, onEdit }: Props) => { const [isModalOpen, setIsModalOpen] = useState(false) + const googleMapQueryURL = contact.address + ? `https://www.google.com/maps/search/?api=1&query=${encodeURI(contact.address)}` + : '' + const renderContactCard = () => (
@@ -34,18 +38,30 @@ const ContactCard = ({ contact, viewMode, onEdit }: Props) => { )}
-
- home_work -

{contact.address}

-
-
- mail -

{contact.email}

-
-
- perm_phone_msg -

{contact.phone}

-
+ {contact.address && ( +
+ home_work + + {contact.address} + +
+ )} + {contact.email && ( +
+ mail + {contact.email} +
+ )} + {contact.phone && ( +
+ perm_phone_msg + {contact.phone} +
+ )}
{contact.linkedinLink && (