Problem
The TS typing when type is "separator" is incorrect, MenuItemAction props are proposed when actually they are not available.
|
if (isSeparator(option)) { |
|
return <Separator key={`separator-${index}`} />; |
|
} |
|
export type MenuItemAction = { |
showSeparator getting deprecated, we don't have a easy anymore to display a separator conditionnally.
Problem
The TS typing when type is "separator" is incorrect,
MenuItemActionprops are proposed when actually they are not available.ui-kit/src/components/dropdown-menu/DropdownMenu.tsx
Lines 71 to 73 in 5ee2e8f
ui-kit/src/components/menu/types.ts
Line 6 in 5ee2e8f
showSeparatorgetting deprecated, we don't have a easy anymore to display a separator conditionnally.ui-kit/src/components/dropdown-menu/types.ts
Line 12 in 5ee2e8f