Skip to content

Commit

Permalink
Do not try to display the informationDesk thumbnail if there isn't one.
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrucs committed Jul 27, 2023
1 parent 7dfc560 commit 235c2fa
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ export const DetailsInformationDesk: React.FC<DetailsInformationDeskProps> = ({
setHoveredCardId(null);
}}
>
<div className="h-25 w-25 shrink-0 hidden desktop:block">
<InformationDeskIcon pictogramUri={photoUrl || type.pictogramUri} />
</div>
<div className="w-full desktop:pl-4">
{(photoUrl || type.pictogramUri) && (
<div className="h-25 w-25 shrink-0 hidden desktop:block desktop:pr-4">
<InformationDeskIcon pictogramUri={photoUrl || type.pictogramUri} />
</div>
)}

<div className="w-full">
<div className="flex items-center">
<div className="shrink-0 mr-auto">
<p className="font-bold">{name}</p>
Expand Down

0 comments on commit 235c2fa

Please sign in to comment.