Skip to content
Snippets Groups Projects
Unverified Commit 7f54572d authored by Júlia Jaeger Foresti's avatar Júlia Jaeger Foresti Committed by GitHub
Browse files

regression: fix condition to `GenericMenu` gap (#29761)

parent bcd027da
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,8 @@ const GenericMenu = ({ title, icon = 'menu', onAction, ...props }: GenericMenuPr ...@@ -40,7 +40,8 @@ const GenericMenu = ({ title, icon = 'menu', onAction, ...props }: GenericMenuPr
const handleAction = useHandleMenuAction(itemsList || []); const handleAction = useHandleMenuAction(itemsList || []);
const hasIcon = itemsList.some(({ icon }) => icon); const hasIcon = itemsList.some(({ icon }) => icon);
const handleItems = (items: GenericMenuItemProps[]) => (hasIcon ? items.map((item) => ({ ...item, gap: !item.icon })) : items); const handleItems = (items: GenericMenuItemProps[]) =>
hasIcon ? items.map((item) => ({ ...item, gap: !item.icon && !item.status })) : items;
return ( return (
<> <>
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment