Skip to content

Commit

Permalink
fix: comma-dangle
Browse files Browse the repository at this point in the history
  • Loading branch information
chenos committed Dec 7, 2023
1 parent 190816f commit 38241fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const useMenu = (options: UseMenuOptions = {}): [MenuProps['items'], string] =>
<span>{menu.title}</span>
),
children: menu.children.map((item) => processMenu(item, menu.title)),
disabled: menu.disabled || !menu.children?.length,
disabled: menu.disabled || !menu.children?.length
};
}
if (isItemMenu(menu)) {
Expand All @@ -120,7 +120,7 @@ const useMenu = (options: UseMenuOptions = {}): [MenuProps['items'], string] =>
</ExternalLink>
),
key: menu.link,
disabled: menu.disabled || menu.link === '#',
disabled: menu.disabled || menu.link === '#'
};
}
return null;
Expand Down

0 comments on commit 38241fd

Please sign in to comment.