Fix create dropdown hotkey

This commit is contained in:
Gregory Schier
2024-02-24 22:02:04 -08:00
parent 3d61bac030
commit 520ff0f68c
3 changed files with 6 additions and 4 deletions

View File

@@ -8,16 +8,17 @@ import { Dropdown } from './core/Dropdown';
interface Props {
hideFolder?: boolean;
children: DropdownProps['children'];
openOnHotKeyAction?: DropdownProps['openOnHotKeyAction'];
}
export function CreateDropdown({ hideFolder, children }: Props) {
export function CreateDropdown({ hideFolder, children, openOnHotKeyAction }: Props) {
const createHttpRequest = useCreateHttpRequest();
const createGrpcRequest = useCreateGrpcRequest();
const createFolder = useCreateFolder();
return (
<Dropdown
openOnHotKeyAction="http_request.create"
openOnHotKeyAction={openOnHotKeyAction}
items={[
{
key: 'create-http-request',