Skip to content

Commit

Permalink
fix: mv map key to Fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-anderson committed Mar 16, 2024
1 parent 5cc138c commit 7786f3d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/Navigation/LegalLinks.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Fragment } from "react";
import { styled, alpha } from "@mui/material/styles";
import Divider, { dividerClasses } from "@mui/material/Divider";
import Stack, { type StackProps } from "@mui/material/Stack";
Expand Down Expand Up @@ -67,16 +68,16 @@ export const LegalLinks = ({
link: APP_PATHS.COOKIES,
},
].map(({ label, link, tooltip }, index) => (
<>
<Fragment key={label}>
{!includeStripeBadge && index !== 0 && (
<Divider orientation="vertical" variant="middle" flexItem />
)}
<Tooltip key={label} title={tooltip}>
<Tooltip title={tooltip}>
<Link to={link} tabIndex={tabIndex}>
{`${label} ` /* <-- Don't rm the \s after label, it elongates the underline */}
</Link>
</Tooltip>
</>
</Fragment>
))}
</StyledStack>
);
Expand Down

0 comments on commit 7786f3d

Please sign in to comment.