From 68ea5f5449e5507f4270ba5fcb3647576f1d338e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Wed, 4 Sep 2024 18:22:31 +0200 Subject: [PATCH] pl-fe: go to pinned shortcut doesn't make much sense MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- .../src/features/ui/components/modals/hotkeys-modal.tsx | 4 ---- packages/pl-fe/src/features/ui/util/global-hotkeys.tsx | 9 +-------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/packages/pl-fe/src/features/ui/components/modals/hotkeys-modal.tsx b/packages/pl-fe/src/features/ui/components/modals/hotkeys-modal.tsx index 3b47b8ff7..e334db37d 100644 --- a/packages/pl-fe/src/features/ui/components/modals/hotkeys-modal.tsx +++ b/packages/pl-fe/src/features/ui/components/modals/hotkeys-modal.tsx @@ -141,10 +141,6 @@ const HotkeysModal: React.FC = ({ onClose }) => { g + p - - - - g + u diff --git a/packages/pl-fe/src/features/ui/util/global-hotkeys.tsx b/packages/pl-fe/src/features/ui/util/global-hotkeys.tsx index 2ed02c7b9..70f87f28c 100644 --- a/packages/pl-fe/src/features/ui/util/global-hotkeys.tsx +++ b/packages/pl-fe/src/features/ui/util/global-hotkeys.tsx @@ -28,8 +28,7 @@ const keyMap = { goToHome: 'g h', goToNotifications: 'g n', goToFavourites: 'g f', - goToPinned: 'g p', - goToProfile: 'g u', + goToProfile: ['g p', 'g u'], goToBlocked: 'g b', goToMuted: 'g m', goToRequests: 'g r', @@ -115,11 +114,6 @@ const GlobalHotkeys: React.FC = ({ children, node }) => { history.push(`/@${account.username}/favorites`); }; - const handleHotkeyGoToPinned = () => { - if (!account) return; - history.push(`/@${account.username}/pins`); - }; - const handleHotkeyGoToProfile = () => { if (!account) return; history.push(`/@${account.username}`); @@ -148,7 +142,6 @@ const GlobalHotkeys: React.FC = ({ children, node }) => { goToHome: handleHotkeyGoToHome, goToNotifications: handleHotkeyGoToNotifications, goToFavourites: handleHotkeyGoToFavourites, - goToPinned: handleHotkeyGoToPinned, goToProfile: handleHotkeyGoToProfile, goToBlocked: handleHotkeyGoToBlocked, goToMuted: handleHotkeyGoToMuted,