diff --git a/apps/desktop/src/renderer/screens/main/components/TopBar/SettingsButton/SettingsButton.tsx b/apps/desktop/src/renderer/screens/main/components/TopBar/SettingsButton/SettingsButton.tsx
index d3dbacd3ff4..43ced9d205f 100644
--- a/apps/desktop/src/renderer/screens/main/components/TopBar/SettingsButton/SettingsButton.tsx
+++ b/apps/desktop/src/renderer/screens/main/components/TopBar/SettingsButton/SettingsButton.tsx
@@ -1,17 +1,35 @@
+import { Kbd, KbdGroup } from "@superset/ui/kbd";
+import { Tooltip, TooltipContent, TooltipTrigger } from "@superset/ui/tooltip";
import { HiOutlineCog6Tooth } from "react-icons/hi2";
import { useOpenSettings } from "renderer/stores";
+import { formatKeysForDisplay, HOTKEYS } from "shared/hotkeys";
export function SettingsButton() {
const openSettings = useOpenSettings();
+ const keys = formatKeysForDisplay(HOTKEYS.SHOW_HOTKEYS.keys);
return (
-
+
+
+
+
+
+
+ Settings
+
+ {keys.map((key) => (
+ {key}
+ ))}
+
+
+
+
);
}
diff --git a/apps/desktop/src/renderer/screens/main/components/TopBar/SidebarControl.tsx b/apps/desktop/src/renderer/screens/main/components/TopBar/SidebarControl.tsx
index 8eb7b431af3..c2b71e587c5 100644
--- a/apps/desktop/src/renderer/screens/main/components/TopBar/SidebarControl.tsx
+++ b/apps/desktop/src/renderer/screens/main/components/TopBar/SidebarControl.tsx
@@ -1,23 +1,41 @@
import { Button } from "@superset/ui/button";
+import { Kbd, KbdGroup } from "@superset/ui/kbd";
+import { Tooltip, TooltipContent, TooltipTrigger } from "@superset/ui/tooltip";
import { HiMiniBars3, HiMiniBars3BottomLeft } from "react-icons/hi2";
import { useSidebarStore } from "renderer/stores";
+import { formatKeysForDisplay, HOTKEYS } from "shared/hotkeys";
export function SidebarControl() {
const { isSidebarOpen, toggleSidebar } = useSidebarStore();
+ const keys = formatKeysForDisplay(HOTKEYS.TOGGLE_SIDEBAR.keys);
return (
-
+
+
+
+
+
+
+ Toggle sidebar
+
+ {keys.map((key) => (
+ {key}
+ ))}
+
+
+
+
);
}