Skip to content

Commit

Permalink
remove footer link menu if no links are provided (#494)
Browse files Browse the repository at this point in the history
Co-authored-by: Alyssa Wang <[email protected]>
  • Loading branch information
AlyssaWang and AlyssaWang committed Jun 21, 2024
1 parent 7a7793a commit 933be37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ const Footer: FC<FooterProps> = ({ version, linkList }) => {
};

const renderLinksMenu = () => {
if (!linkList || linkList.length === 0) return;
return (
<Box display="flex" alignItems="center" data-testid="footer-links">
<IconButton
Expand Down Expand Up @@ -117,6 +118,7 @@ const Footer: FC<FooterProps> = ({ version, linkList }) => {
};

const renderLinks = () => {
if (!linkList || linkList.length === 0) return;
return (
<Box display="flex" alignItems="center" p={2} data-testid="footer-links">
{linkList &&
Expand Down

0 comments on commit 933be37

Please sign in to comment.