Skip to content

Commit

Permalink
feat(hooks): update typescript types
Browse files Browse the repository at this point in the history
  • Loading branch information
KuangPF committed Jul 16, 2023
1 parent 044d53d commit f5a740d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const useMenu = (options: UseMenuOptions = {}): [MenuProps['items'], string] =>
nextChildrenResult[type].push(child);
return nextChildrenResult;
}, {});
const childItems = [];
const childItems: any[] = [];
childItems.push(
...childrenGroup.default.map((item) => ({
label: (
Expand Down

0 comments on commit f5a740d

Please sign in to comment.