diff --git a/apps/app/components/command-palette/shortcuts-modal.tsx b/apps/app/components/command-palette/shortcuts-modal.tsx index d5b1aa0fc..0cdb051f6 100644 --- a/apps/app/components/command-palette/shortcuts-modal.tsx +++ b/apps/app/components/command-palette/shortcuts-modal.tsx @@ -52,7 +52,6 @@ export const ShortcutsModal: React.FC = ({ isOpen, setIsOpen }) => { ? true : false ); - const { platform } = (window.navigator as any).userAgentData; useEffect(() => { if (!isOpen) setQuery(""); @@ -127,18 +126,12 @@ export const ShortcutsModal: React.FC = ({ isOpen, setIsOpen }) => { {shortcut.keys.split(",").map((key, index) => ( {key === "Ctrl" ? ( - platform === "Windows" ? ( - - {key} - - ) : ( - - - - ) + + + ) : ( - {key} + {key === "Ctrl" ? : key} )} @@ -172,18 +165,12 @@ export const ShortcutsModal: React.FC = ({ isOpen, setIsOpen }) => { {keys.split(",").map((key, index) => ( {key === "Ctrl" ? ( - platform === "Windows" ? ( - - {key} - - ) : ( - - - - ) + + + ) : ( - {key} + {key === "Ctrl" ? : key} )} diff --git a/apps/app/components/workspace/help-section.tsx b/apps/app/components/workspace/help-section.tsx index 9475c3adf..53cc1e461 100644 --- a/apps/app/components/workspace/help-section.tsx +++ b/apps/app/components/workspace/help-section.tsx @@ -57,7 +57,7 @@ export const WorkspaceHelpSection: FC = (props) => { return (