Skip to content

Commit

Permalink
Display only filled information desk website/email/phone
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrucs committed Nov 23, 2023
1 parent 64f6bb2 commit 1769d68
Showing 1 changed file with 26 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,25 +60,36 @@ export const DetailsInformationDesk: React.FC<DetailsInformationDeskProps> = ({
<DetailsInformationDeskLocation longitude={longitude} latitude={latitude} />
)}
</div>
<a className="break-all" href={website} target="_blank" rel="noopener noreferrer">
<p
className="mt-2
text-primary1 underline
hover:text-primary1-light"
{website && (
<a
className="break-all mt-2 table text-primary1 underline hover:text-primary1-light focus:text-primary1-light"
href={website}
target="_blank"
rel="noopener noreferrer"
>
{website}
</p>
</a>
<a href={`mailto:${email}`} target="_blank" rel="noopener noreferrer">
<p
className="
text-primary1 underline
hover:text-primary1-light"
</a>
)}
{email && (
<a
className="text-primary1 table underline hover:text-primary1-light focus:text-primary1-light"
href={`mailto:${email}`}
target="_blank"
rel="noopener noreferrer"
>
{email}
</p>
</a>
<p className="text-primary1">{phone}</p>
</a>
)}
{phone && (
<a
className="text-primary1 table hover:text-primary1-light focus:text-primary1-light"
href={`tel:${phone}`}
target="_blank"
rel="noopener noreferrer"
>
{phone}
</a>
)}

{description && (
<div className="flex flex-col desktop:flex-row desktop:items-end mt-4">
Expand Down

0 comments on commit 1769d68

Please sign in to comment.