Remove openOnHotKeyAction in favor of putting hotkey on the trigger button=

This commit is contained in:
Gregory Schier
2024-03-20 15:56:39 -07:00
parent e2220f771d
commit d2d5f2b957
4 changed files with 11 additions and 20 deletions

View File

@@ -5,14 +5,9 @@ import { Dropdown } from './core/Dropdown';
interface Props {
hideFolder?: boolean;
children: DropdownProps['children'];
openOnHotKeyAction?: DropdownProps['openOnHotKeyAction'];
}
export function CreateDropdown({ hideFolder, children, openOnHotKeyAction }: Props) {
export function CreateDropdown({ hideFolder, children }: Props) {
const items = useCreateDropdownItems({ hideFolder, hideIcons: true });
return (
<Dropdown openOnHotKeyAction={openOnHotKeyAction} items={items}>
{children}
</Dropdown>
);
return <Dropdown items={items}>{children}</Dropdown>;
}