From 61e12c4efa27783833d27c09018eaec199f160fb Mon Sep 17 00:00:00 2001 From: Jonas List Date: Wed, 21 May 2025 16:41:53 +0200 Subject: [PATCH] Removed unnecessary state for isMac --- components/KeyboardShortcut.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/components/KeyboardShortcut.tsx b/components/KeyboardShortcut.tsx index 8032c11..4c0cd6c 100644 --- a/components/KeyboardShortcut.tsx +++ b/components/KeyboardShortcut.tsx @@ -14,12 +14,10 @@ const KeyboardShortcut: React.FC = ({ className, }) => { const [displayShortcut, setDisplayShortcut] = useState(shortcut); - const [isMac, setIsMac] = useState(false); useEffect(() => { // OS detection should run only on the client-side const isMacUser = navigator.platform.toUpperCase().indexOf("MAC") >= 0; - setIsMac(isMacUser); if (isMacUser) { if (macosShortcut) {