Skip to content
Prev Previous commit
Next Next commit
Fix fragment warning inside of menu
  • Loading branch information
BrunoQuaresma committed Sep 5, 2024
commit 868c981b5f200c44c8c763e68b6f8351d0580b0c
30 changes: 15 additions & 15 deletions site/src/components/Filter/filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -294,21 +294,21 @@ const PresetMenu: FC<PresetMenuProps> = ({
</MenuItem>
))}
{learnMoreLink && (
<>
<Divider css={{ borderColor: theme.palette.divider }} />
<MenuItem
component="a"
href={learnMoreLink}
target="_blank"
css={{ fontSize: 13, fontWeight: 500 }}
onClick={() => {
setIsOpen(false);
}}
>
<OpenInNewOutlined css={{ fontSize: "14px !important" }} />
View advanced filtering
</MenuItem>
</>
<Divider css={{ borderColor: theme.palette.divider }} />
)}
{learnMoreLink && (
<MenuItem
component="a"
href={learnMoreLink}
target="_blank"
css={{ fontSize: 13, fontWeight: 500 }}
onClick={() => {
setIsOpen(false);
}}
>
<OpenInNewOutlined css={{ fontSize: "14px !important" }} />
View advanced filtering
</MenuItem>
)}
{learnMoreLink2 && learnMoreLabel2 && (
<MenuItem
Expand Down