From e274aedb9a267c16ad444f2135e365ebf6f0266f Mon Sep 17 00:00:00 2001 From: Anoop M D Date: Thu, 26 Oct 2023 09:54:32 +0530 Subject: [PATCH] Revert "Make Tabs closable by mouseclick. Closes #778" --- .../bruno-app/src/components/RequestTabs/index.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/packages/bruno-app/src/components/RequestTabs/index.js b/packages/bruno-app/src/components/RequestTabs/index.js index d9327ab5b..3063771e8 100644 --- a/packages/bruno-app/src/components/RequestTabs/index.js +++ b/packages/bruno-app/src/components/RequestTabs/index.js @@ -4,7 +4,7 @@ import filter from 'lodash/filter'; import classnames from 'classnames'; import { IconChevronRight, IconChevronLeft } from '@tabler/icons'; import { useSelector, useDispatch } from 'react-redux'; -import { closeTabs, focusTab } from 'providers/ReduxStore/slices/tabs'; +import { focusTab } from 'providers/ReduxStore/slices/tabs'; import NewRequest from 'components/Sidebar/NewRequest'; import CollectionToolBar from './CollectionToolBar'; import RequestTab from './RequestTab'; @@ -35,14 +35,6 @@ const RequestTabs = () => { ); }; - const handleCloseClick = (tab) => { - dispatch( - closeTabs({ - tabUids: [tab.uid] - }) - ); - }; - const createNewTab = () => setNewRequestModalOpen(true); if (!activeTabUid) { @@ -118,7 +110,6 @@ const RequestTabs = () => { className={getTabClassname(tab, index)} role="tab" onClick={() => handleClick(tab)} - onAuxClick={() => handleCloseClick(tab)} >