Skip to content

Commit

Permalink
fixed show more information on join chapter InfoTile
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-j-edwards committed Apr 11, 2024
1 parent 3f8d1eb commit ba91c10
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/components/TileGrid/InfoTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,17 @@ const InfoTile = (params: InfoTileProps) => {
</div>
))}
</div>
<DropDownContainer
title={
<p className="mb-6 w-fit cursor-pointer text-dark-teal underline">
{!shouldShowMore ? "Show more" : "Show less"}
</p>
}
>
{moreInformation}
</DropDownContainer>
{moreInformation ? (
<DropDownContainer
title={
<p className="mb-6 w-fit cursor-pointer text-dark-teal underline">
{!shouldShowMore ? "Show more" : "Show less"}
</p>
}
>
{moreInformation}
</DropDownContainer>
) : null}
</div>
);
};
Expand Down

0 comments on commit ba91c10

Please sign in to comment.