TypeScript
fix(web): hide sidebar search shortcut on mobile (#9932)
maria8d3c56b48781
diff --git a/apps/web/src/components/LegacySidebar.tsx b/apps/web/src/components/LegacySidebar.tsxindex a3a07839f83..872fa1e4ec6 100644--- a/apps/web/src/components/LegacySidebar.tsx+++ b/apps/web/src/components/LegacySidebar.tsx@@ -3610,11 +3610,9 @@ export default function LegacySidebar() {desktopUpdateState && showArm64IntelBuildWarning? getArm64IntelBuildWarningDescription(desktopUpdateState): null;- const commandPaletteShortcutLabel = shortcutLabelForCommand(- keybindings,- "commandPalette.toggle",- newThreadShortcutLabelOptions,- );+ const commandPaletteShortcutLabel = isMobile+ ? null+ : shortcutLabelForCommand(keybindings, "commandPalette.toggle", newThreadShortcutLabelOptions);const handleDesktopUpdateButtonClick = useCallback(async () => {const bridge = window.desktopBridge;if (!bridge || !desktopUpdateState) return;