diff --git a/packages/bruno-app/src/components/RequestTabs/RequestTab/CloseTab/CloseTabIcon.js b/packages/bruno-app/src/components/RequestTabs/RequestTab/CloseTab/CloseTabIcon.js new file mode 100644 index 000000000..de2aa845d --- /dev/null +++ b/packages/bruno-app/src/components/RequestTabs/RequestTab/CloseTab/CloseTabIcon.js @@ -0,0 +1,10 @@ +const CloseTabIcon = () => ( + + + +); + +export default CloseTabIcon; diff --git a/packages/bruno-app/src/components/RequestTabs/RequestTab/CloseTab/DraftTabIcon.js b/packages/bruno-app/src/components/RequestTabs/RequestTab/CloseTab/DraftTabIcon.js new file mode 100644 index 000000000..ab097c536 --- /dev/null +++ b/packages/bruno-app/src/components/RequestTabs/RequestTab/CloseTab/DraftTabIcon.js @@ -0,0 +1,15 @@ +const DraftTabIcon = () => ( + + + +); + +export default DraftTabIcon; diff --git a/packages/bruno-app/src/components/RequestTabs/RequestTab/RequestTabNotFound.js b/packages/bruno-app/src/components/RequestTabs/RequestTab/RequestTabNotFound.js index 7bf45446e..0f69311a0 100644 --- a/packages/bruno-app/src/components/RequestTabs/RequestTab/RequestTabNotFound.js +++ b/packages/bruno-app/src/components/RequestTabs/RequestTab/RequestTabNotFound.js @@ -1,5 +1,6 @@ import React, { useState, useEffect } from 'react'; import { IconAlertTriangle } from '@tabler/icons'; +import CloseTabIcon from './CloseTab/CloseTabIcon'; const RequestTabNotFound = ({ handleCloseClick }) => { const [showErrorMessage, setShowErrorMessage] = useState(false); @@ -28,12 +29,7 @@ const RequestTabNotFound = ({ handleCloseClick }) => { ) : null}
handleCloseClick(e)}> - - - +
); diff --git a/packages/bruno-app/src/components/RequestTabs/RequestTab/SpecialTab.js b/packages/bruno-app/src/components/RequestTabs/RequestTab/SpecialTab.js index 8745cf079..fc5fba82d 100644 --- a/packages/bruno-app/src/components/RequestTabs/RequestTab/SpecialTab.js +++ b/packages/bruno-app/src/components/RequestTabs/RequestTab/SpecialTab.js @@ -1,4 +1,5 @@ import React from 'react'; +import CloseTabIcon from './CloseTab/CloseTabIcon'; import { IconVariable, IconSettings, IconRun, IconFolder, IconShieldLock } from '@tabler/icons'; const SpecialTab = ({ handleCloseClick, type, tabName }) => { @@ -51,12 +52,7 @@ const SpecialTab = ({ handleCloseClick, type, tabName }) => { <>
{getTabInfo(type, tabName)}
handleCloseClick(e)}> - - - +
); diff --git a/packages/bruno-app/src/components/RequestTabs/RequestTab/index.js b/packages/bruno-app/src/components/RequestTabs/RequestTab/index.js index 83f6b72a1..d326885a9 100644 --- a/packages/bruno-app/src/components/RequestTabs/RequestTab/index.js +++ b/packages/bruno-app/src/components/RequestTabs/RequestTab/index.js @@ -15,6 +15,8 @@ import StyledWrapper from './StyledWrapper'; import Dropdown from 'components/Dropdown'; import CloneCollectionItem from 'components/Sidebar/Collections/Collection/CollectionItem/CloneCollectionItem/index'; import NewRequest from 'components/Sidebar/NewRequest/index'; +import CloseTabIcon from './CloseTab/CloseTabIcon'; +import DraftTabIcon from './CloseTab/DraftTabIcon'; const RequestTab = ({ tab, collection, tabIndex, collectionRequestTabs, folderUid }) => { const dispatch = useDispatch(); @@ -180,24 +182,9 @@ const RequestTab = ({ tab, collection, tabIndex, collectionRequestTabs, folderUi }} > {!item.draft ? ( - - - + ) : ( - - - + )}