fix: add commandsManager to MoreDropdownMenu onClick props (#4765)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Alireza Sedghi <ar.sedghi@gmail.com>
This commit is contained in:
parent
9a3d832cc2
commit
bbf1a19676
@ -33,10 +33,10 @@ const getMenuItemsDefault = ({
|
||||
id: string;
|
||||
label: string;
|
||||
iconName: string;
|
||||
onClick: ({ ...props }: withAppTypes) => () => void;
|
||||
onClick: ({ commandsManager, ...props }: withAppTypes) => () => void;
|
||||
};
|
||||
}) => (
|
||||
<DropdownMenuItem onClick={() => item.onClick({ ...props })}>
|
||||
<DropdownMenuItem onClick={() => item.onClick({ commandsManager, ...props })}>
|
||||
<div className="flex items-center gap-2">
|
||||
{item.iconName && <Icons.ByName name={item.iconName} />}
|
||||
<span>{item.label}</span>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user