Skip to content

Commit

Permalink
fix: remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
topliceanurazvan committed May 10, 2023
1 parent 70bbafd commit 8ff6881
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
16 changes: 0 additions & 16 deletions src/components/organisms/HotKeysHandler/HotKeysHandler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
openNewResourceWizard,
openQuickSearchActionsPopup,
openScaleModal,
setActiveTab,
setLeftBottomMenuSelection,
setLeftMenuSelection,
toggleLeftMenu,
Expand Down Expand Up @@ -60,7 +59,6 @@ const HotKeysHandler = () => {
const [isApplyModalVisible, setIsApplyModalVisible] = useState(false);

useHotkeys(hotkeys.SELECT_FOLDER.key, () => {
console.log('Here');
dispatch(openFolderExplorer());
});

Expand Down Expand Up @@ -249,20 +247,6 @@ const HotKeysHandler = () => {
[isQuickSearchActionsPopupOpened]
);

useHotkeys(hotkeys.FIND.key, () => {
if (!isInQuickClusterMode) {
dispatch(setLeftMenuSelection('search'));
dispatch(setActiveTab('search'));
}
});

useHotkeys(hotkeys.REPLACE.key, () => {
if (!isInQuickClusterMode) {
dispatch(setLeftMenuSelection('search'));
dispatch(setActiveTab('findReplace'));
}
});

return (
<>
{isApplyModalVisible && (
Expand Down
10 changes: 0 additions & 10 deletions src/shared/constants/hotkeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,6 @@ export const hotkeys = createHotkeys({
key: 'ctrl+backspace, command+backspace',
category: 'tool',
},
FIND: {
name: 'Search Files',
key: 'ctrl+f, command+f',
category: 'tool',
},
REPLACE: {
name: 'Search and Replace Files',
key: 'ctrl+shift+f, command+shift+f',
category: 'tool',
},
SCALE: {
name: 'Scale replicas',
key: 'ctrl+shift+s, command+shift+s',
Expand Down

0 comments on commit 8ff6881

Please sign in to comment.