From ebd77ea79370cc9e5e560f26077caa933771420b Mon Sep 17 00:00:00 2001 From: Delirium Date: Tue, 26 Mar 2024 14:29:29 +0100 Subject: [PATCH] fix(ui): move shortcuts to modal (#1996) --- .../Controls/components/KeyboardHelp.tsx | 61 ++++++++++--------- 1 file changed, 32 insertions(+), 29 deletions(-) diff --git a/frontend/app/components/Session_/Player/Controls/components/KeyboardHelp.tsx b/frontend/app/components/Session_/Player/Controls/components/KeyboardHelp.tsx index 25d7813ff..0d15d581e 100644 --- a/frontend/app/components/Session_/Player/Controls/components/KeyboardHelp.tsx +++ b/frontend/app/components/Session_/Player/Controls/components/KeyboardHelp.tsx @@ -1,11 +1,12 @@ import React from 'react'; import { Icon } from 'UI'; import { Popover, Button } from 'antd'; +import { useModal } from "../../../../Modal"; const Key = ({ label }: { label: string }) =>
{label}
; function Cell({ shortcut, text }: any) { return ( -
+
{text}
@@ -32,41 +33,43 @@ export const PlaybackSpeedShortcut = () => function ShortcutGrid() { return ( -
- - - - - - - - - - - - - - - - - +
+
Keyboard Shortcuts
+
+ + + + + + + + + + + + + + + + + +
); } function KeyboardHelp() { + const { showModal } = useModal(); return ( - Keyboard Shortcuts
} - content={} + - + + ); }