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:
devin-ai-integration[bot] 2025-02-04 18:33:45 -05:00 committed by GitHub
parent 9a3d832cc2
commit bbf1a19676
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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>