Skip to content

TagSpaces is an offline, open source, document manager with tagging support

chore: migration to tsiconbutton component

Ilian Sapundshiev6490b9c66385
diff --git a/package.json b/package.json
index e0ac7ec1d..3534b0302 100644
--- a/package.json
+++ b/package.json
@@ -234,7 +234,7 @@
"uuid": "^9.0.0"
},
"optionalDependencies": {
- "@tagspacespro/tagspacespro": "5.0.85"
+ "@tagspacespro/tagspacespro": "5.0.86"
},
"devDependencies": {
"@electron/notarize": "^2.3.2",
diff --git a/src/renderer/components/CommonIcons.tsx b/src/renderer/components/CommonIcons.tsx
index dc4ffa0c0..b91715fcb 100644
--- a/src/renderer/components/CommonIcons.tsx
+++ b/src/renderer/components/CommonIcons.tsx
@@ -21,8 +21,7 @@ import KeyboardReturnIcon from '@mui/icons-material/KeyboardReturn';
import MarkdownRawIcon from '@mui/icons-material/SimCardDownload';
export const ParentFolderIcon = (props) => (
- <KeyboardReturnIcon style={{ transform: 'rotate(90deg)' }} />
- // <ParentFolder {...props} />
+ <KeyboardReturnIcon style={{ transform: 'rotate(90deg)' }} {...props} />
);
export const MarkdownFileIcon = (props) => (
@@ -152,3 +151,20 @@ export { default as HTMLFileIcon } from '@mui/icons-material/Description';
export { default as LinkFileIcon } from '@mui/icons-material/FileOpen';
export { default as AccountIcon } from '@mui/icons-material/AccountCircle';
+
+export { default as PreviewIcon } from '@mui/icons-material/Preview';
+
+export { default as RestoreIcon } from '@mui/icons-material/SettingsBackupRestore';
+
+export { default as CloseEntryIcon } from '@mui/icons-material/HighlightOffOutlined';
+
+import ExpandCircleDownOutlined from '@mui/icons-material/ExpandCircleDownOutlined';
+
+export const PrevDocumentIcon = (props) => (
+ <ExpandCircleDownOutlined
+ style={{ transform: 'rotate(180deg)' }}
+ {...props}
+ />
+);
+
+export { default as NextDocumentIcon } from '@mui/icons-material/ExpandCircleDownOutlined';
diff --git a/src/renderer/components/DirectoryTreeView.tsx b/src/renderer/components/DirectoryTreeView.tsx
index 82330ea29..82f053a8b 100644
--- a/src/renderer/components/DirectoryTreeView.tsx
+++ b/src/renderer/components/DirectoryTreeView.tsx
@@ -19,7 +19,6 @@
import React, { useState, forwardRef, useImperativeHandle, Ref } from 'react';
import { useSelector } from 'react-redux';
import Table from 'rc-table';
-import FolderIcon from '@mui/icons-material/FolderOpen';
import { locationType } from '@tagspaces/tagspaces-common/misc';
import AppConfig from '-/AppConfig';
import DragItemTypes from '-/components/DragItemTypes';
@@ -28,6 +27,7 @@ import { getShowUnixHiddenEntries } from '-/reducers/settings';
import { useCurrentLocationContext } from '-/hooks/useCurrentLocationContext';
import { useDirectoryContentContext } from '-/hooks/useDirectoryContentContext';
import { CommonLocation } from '-/utils/CommonLocation';
+import { FolderOutlineIcon } from '-/components/CommonIcons';
import CustomDragLayer from '-/components/CustomDragLayer';
import TargetFileBox from '-/components/TargetFileBox';
import { NativeTypes } from 'react-dnd-html5-backend';
@@ -100,7 +100,7 @@ const DirectoryTreeView = forwardRef(
const renderNameColumnAction = (field) => {
const children = (
<span style={{ fontSize: 15 }} title={field}>
- <FolderIcon
+ <FolderOutlineIcon
style={{
marginTop: 0,
marginLeft: 3,
diff --git a/src/renderer/components/EntryContainerNav.tsx b/src/renderer/components/EntryContainerNav.tsx
index e6695d34c..6f8162857 100644
--- a/src/renderer/components/EntryContainerNav.tsx
+++ b/src/renderer/components/EntryContainerNav.tsx
@@ -1,10 +1,12 @@
import React from 'react';
import { useSelector } from 'react-redux';
import { useTheme } from '@mui/material/styles';
-import { IconButton } from '@mui/material';
-import CloseIcon from '@mui/icons-material/HighlightOffOutlined';
-import PrevDocumentIcon from '@mui/icons-material/ExpandCircleDownOutlined';
-import NextDocumentIcon from '@mui/icons-material/ExpandCircleDownOutlined';
+import TsIconButton from '-/components/TsIconButton';
+import {
+ CloseIcon,
+ PrevDocumentIcon,
+ NextDocumentIcon,
+} from '-/components/CommonIcons';
import Tooltip from '-/components/Tooltip';
import { useTranslation } from 'react-i18next';
import { getKeyBindingObject } from '-/reducers/settings';
@@ -41,7 +43,7 @@ function EntryContainerNav(props: Props) {
title={t('core:openPrevFileTooltip')}
keyBinding={keyBindings['prevDocument']}
>
- <IconButton
+ <TsIconButton
aria-label={t('core:openPrevFileTooltip')}
data-tid="fileContainerPrevFile"
onClick={() => {
@@ -52,14 +54,14 @@ function EntryContainerNav(props: Props) {
//window.dispatchEvent(new Event('previous-file'));
}}
>
- <PrevDocumentIcon style={{ transform: 'rotate(180deg)' }} />
- </IconButton>
+ <PrevDocumentIcon />
+ </TsIconButton>
</Tooltip>
<Tooltip
title={t('core:openNextFileTooltip')}
keyBinding={keyBindings['nextDocument']}
>
- <IconButton
+ <TsIconButton
aria-label={t('core:openNextFileTooltip')}
data-tid="fileContainerNextFile"
onClick={() => {
@@ -69,7 +71,7 @@ function EntryContainerNav(props: Props) {
}}
>
<NextDocumentIcon />
- </IconButton>
+ </TsIconButton>
</Tooltip>
</>
)}
@@ -77,13 +79,13 @@ function EntryContainerNav(props: Props) {
title={t('core:closeEntry')}
keyBinding={keyBindings['closeViewer']}
>
- <IconButton
+ <TsIconButton
onClick={startClosingEntry}
aria-label={t('core:closeEntry')}
data-tid="fileContainerCloseOpenedFile"
>
<CloseIcon />
- </IconButton>
+ </TsIconButton>
</Tooltip>
</div>
);
diff --git a/src/renderer/components/EntryContainerTitle.tsx b/src/renderer/components/EntryContainerTitle.tsx
index 5a1c29ca3..9575bc170 100644
--- a/src/renderer/components/EntryContainerTitle.tsx
+++ b/src/renderer/components/EntryContainerTitle.tsx
@@ -32,7 +32,7 @@ import EntryContainerMenu from '-/components/EntryContainerMenu';
import Box from '@mui/material/Box';
import { dataTidFormat } from '-/services/test';
import { ProTooltip } from '-/components/HelperComponents';
-import IconButton from '@mui/material/IconButton';
+import TsIconButton from '-/components/TsIconButton';
import HttpsIcon from '@mui/icons-material/Https';
import BookmarkIcon from '@mui/icons-material/BookmarkTwoTone';
import BookmarkAddIcon from '@mui/icons-material/BookmarkAddTwoTone';
@@ -239,10 +239,9 @@ function EntryContainerTitle(props: Props) {
</Box>
</Tooltip>
<ProTooltip tooltip={t('core:toggleBookmark')}>
- <IconButton
+ <TsIconButton
data-tid="toggleBookmarkTID"
aria-label="bookmark"
- size="small"
onClick={bookmarkClick}
style={{
// @ts-ignore
@@ -263,7 +262,7 @@ function EntryContainerTitle(props: Props) {
}}
/>
)}
- </IconButton>
+ </TsIconButton>
</ProTooltip>
<TagsPreview tags={getAllTags(openedEntry)} />
{openedEntry.isEncrypted && (
diff --git a/src/renderer/components/EntryProperties.tsx b/src/renderer/components/EntryProperties.tsx
index ec6bfa769..ce43b4ba9 100644
--- a/src/renderer/components/EntryProperties.tsx
+++ b/src/renderer/components/EntryProperties.tsx
@@ -52,7 +52,7 @@ import {
Popup,
TileLayer,
} from 'react-leaflet';
-import { ButtonGroup, IconButton, Button } from '@mui/material';
+import TsIconButton from '-/components/TsIconButton';
import { formatBytes } from '@tagspaces/tagspaces-common/misc';
import {
extractContainingDirectoryPath,
@@ -981,14 +981,14 @@ function EntryProperties(props: Props) {
<InputAdornment position="end">
<Box>
<ProTooltip tooltip={t('changeBackgroundColor')}>
- <IconButton
+ <TsIconButton
data-tid="changeBackgroundColorTID"
aria-describedby={popoverId}
onClick={handlePopeverClick}
disabled={!Pro}
>
<ColorPaletteIcon />
- </IconButton>
+ </TsIconButton>
</ProTooltip>
<Popover
open={popoverOpen}
@@ -1007,7 +1007,7 @@ function EntryProperties(props: Props) {
<Box style={{ padding: 10 }}>
{defaultBackgrounds.map((background, cnt) => (
<>
- <IconButton
+ <TsIconButton
key={cnt}
data-tid={'backgroundTID' + cnt}
aria-label="changeFolderBackround"
@@ -1022,7 +1022,7 @@ function EntryProperties(props: Props) {
}}
>
<SetBackgroundIcon />
- </IconButton>
+ </TsIconButton>
{cnt % 4 === 3 && <br />}
</>
))}
@@ -1032,7 +1032,7 @@ function EntryProperties(props: Props) {
{openedEntry.meta && openedEntry.meta.color && (
<>
<ProTooltip tooltip={t('clearFolderColor')}>
- <IconButton
+ <TsIconButton
data-tid={'backgroundClearTID'}
disabled={!Pro}
aria-label="clear"
@@ -1041,7 +1041,7 @@ function EntryProperties(props: Props) {
}
>
<ClearBackgroundIcon />
- </IconButton>
+ </TsIconButton>
</ProTooltip>
</>
)}
diff --git a/src/renderer/components/FolderContainer.tsx b/src/renderer/components/FolderContainer.tsx
index 6a8e89366..4f8446e98 100644
--- a/src/renderer/components/FolderContainer.tsx
+++ b/src/renderer/components/FolderContainer.tsx
@@ -20,14 +20,13 @@ import React, { useCallback, useState } from 'react';
import { useTheme } from '@mui/material/styles';
import { useDispatch, useSelector } from 'react-redux';
import useMediaQuery from '@mui/material/useMediaQuery';
-import IconButton from '@mui/material/IconButton';
+import TsIconButton from '-/components/TsIconButton';
import TsButton from '-/components/TsButton';
import Box from '@mui/material/Box';
import CircularProgress from '@mui/material/CircularProgress';
import Tooltip from '-/components/Tooltip';
import Typography from '@mui/material/Typography';
import ToggleButton from '@mui/material/ToggleButton';
-import Button from '@mui/material/Button';
import ToggleButtonGroup from '@mui/material/ToggleButtonGroup';
import AppConfig from '-/AppConfig';
import { getDesktopMode, getKeyBindingObject } from '-/reducers/settings';
@@ -208,7 +207,7 @@ function FolderContainer(props: Props) {
: 0,
}}
>
- <IconButton
+ <TsIconButton
id="mobileMenuButton"
style={{
// @ts-ignore
@@ -218,13 +217,13 @@ function FolderContainer(props: Props) {
onClick={toggleDrawer}
>
<MainMenuIcon />
- </IconButton>
+ </TsIconButton>
<Tooltip
title={
t('core:goback') + ' - BETA - ' + t('core:gobackClarification')
}
>
- <IconButton
+ <TsIconButton
id="goBackButton"
disabled={historyIndex === 0}
onClick={goBack}
@@ -234,11 +233,11 @@ function FolderContainer(props: Props) {
}}
>
<GoBackIcon />
- </IconButton>
+ </TsIconButton>
</Tooltip>
{isTinyMode && (
<Tooltip title={t('core:goforward') + ' - BETA'}>
- <IconButton
+ <TsIconButton
id="goForwardButton"
disabled={historyIndex === 0}
onClick={goForward}
@@ -248,7 +247,7 @@ function FolderContainer(props: Props) {
}}
>
<GoForwardIcon />
- </IconButton>
+ </TsIconButton>
</Tooltip>
)}
{isSearchMode ? (
@@ -267,7 +266,7 @@ function FolderContainer(props: Props) {
<Tooltip
title={t('core:openSearch') + ' (' + openSearchKeyBinding + ')'}
>
- <IconButton
+ <TsIconButton
data-tid="toggleSearch"
onClick={openSearchMode}
style={{
@@ -276,7 +275,7 @@ function FolderContainer(props: Props) {
}}
>
<SearchIcon />
- </IconButton>
+ </TsIconButton>
</Tooltip>
) : (
<TsButton
@@ -298,7 +297,7 @@ function FolderContainer(props: Props) {
)}
{progress?.length > 0 && (
- <IconButton
+ <TsIconButton
id="progressButton"
title={t('core:progress')}
data-tid="uploadProgress"
@@ -312,7 +311,7 @@ function FolderContainer(props: Props) {
}}
>
<CircularProgressWithLabel value={getProgressValue()} />
- </IconButton>
+ </TsIconButton>
)}
<PathBreadcrumbs
switchPerspective={switchPerspective}
diff --git a/src/renderer/components/RenderHistory.tsx b/src/renderer/components/RenderHistory.tsx
index c070bce3c..1b25d21fa 100644
--- a/src/renderer/components/RenderHistory.tsx
+++ b/src/renderer/components/RenderHistory.tsx
@@ -28,7 +28,7 @@ import {
extractDirectoryName,
extractFileName,
} from '@tagspaces/tagspaces-common/paths';
-import IconButton from '@mui/material/IconButton';
+import TsIconButton from '-/components/TsIconButton';
import { RemoveIcon, HistoryIcon } from '-/components/CommonIcons';
import { dataTidFormat } from '-/services/test';
import { useTranslation } from 'react-i18next';
@@ -94,9 +94,9 @@ function RenderHistory(props: Props) {
}
>
{historyKey === Pro.keys.bookmarksKey ? (
- <BookmarkTwoToneIcon fontSize="small" />
+ <BookmarkTwoToneIcon />
) : (
- <HistoryIcon fontSize="small" />
+ <HistoryIcon />
)}
</Tooltip>
&nbsp;
@@ -115,7 +115,7 @@ function RenderHistory(props: Props) {
{showDelete && (
<Grid item xs={2}>
<TooltipTS title={t('delete')}>
- <IconButton
+ <TsIconButton
aria-label={t('core:clearHistory')}
onClick={() => {
if (historyKey === Pro.keys.bookmarksKey) {
@@ -130,10 +130,9 @@ function RenderHistory(props: Props) {
update();
}}
data-tid="deleteHistoryItemTID"
- size="small"
>
<RemoveIcon />
- </IconButton>
+ </TsIconButton>
</TooltipTS>
</Grid>
)}
diff --git a/src/renderer/components/Revisions.tsx b/src/renderer/components/Revisions.tsx
index 1768bbb7f..320403732 100644
--- a/src/renderer/components/Revisions.tsx
+++ b/src/renderer/components/Revisions.tsx
@@ -25,10 +25,7 @@ import {
import Tooltip from '-/components/Tooltip';
import { TS } from '-/tagspaces.namespace';
import { format, formatDistanceToNow } from 'date-fns';
-import DeleteIcon from '@mui/icons-material/Delete';
-import PreviewIcon from '@mui/icons-material/Preview';
-import RestoreIcon from '@mui/icons-material/SettingsBackupRestore';
-import IconButton from '@mui/material/IconButton';
+import TsIconButton from '-/components/TsIconButton';
import AppConfig from '-/AppConfig';
import {
Paper,
@@ -41,6 +38,7 @@ import {
TableRow,
} from '@mui/material';
import { Pro } from '-/pro';
+import { DeleteIcon, PreviewIcon, RestoreIcon } from '-/components/CommonIcons';
import FilePreviewDialog from '-/components/dialogs/FilePreviewDialog';
import { useTranslation } from 'react-i18next';
import { useOpenedEntryContext } from '-/hooks/useOpenedEntryContext';
@@ -201,7 +199,7 @@ function Revisions() {
<TableCell>
{t('revisions')}
<Tooltip title={t('core:deleteAllRevisions')}>
- <IconButton
+ <TsIconButton
aria-label="delete all revisions"
onClick={() =>
confirm(
@@ -209,10 +207,9 @@ function Revisions() {
) && deleteRevisions()
}
data-tid="deleteRevisionsTID"
- size="large"
>
<DeleteIcon />
- </IconButton>
+ </TsIconButton>
</Tooltip>
</TableCell>
<TableCell align="right">{t('created')}</TableCell>
@@ -238,34 +235,31 @@ function Revisions() {
</TableCell>
<TableCell align="right">
<Tooltip title={t('core:view')}>
- <IconButton
+ <TsIconButton
aria-label="view revision"
onClick={() => setPreviewDialogEntry(row)}
data-tid="viewRevisionTID"
- size="large"
>
<PreviewIcon />
- </IconButton>
+ </TsIconButton>
</Tooltip>
<Tooltip title={t('core:restore')}>
- <IconButton
+ <TsIconButton
aria-label="restore revision"
onClick={() => restoreRevision(row.path)}
data-tid="restoreRevisionTID"
- size="large"
>
<RestoreIcon />
- </IconButton>
+ </TsIconButton>
</Tooltip>
<Tooltip title={t('core:delete')}>
- <IconButton
+ <TsIconButton
aria-label="delete revision"
onClick={() => deleteRevision(row.path)}
data-tid="deleteRevisionTID"
- size="large"
>
<DeleteIcon />
- </IconButton>
+ </TsIconButton>
</Tooltip>
</TableCell>
</TableRow>
diff --git a/src/renderer/components/SearchAutocomplete.tsx b/src/renderer/components/SearchAutocomplete.tsx
index bff2adef0..f6ea37c3c 100644
--- a/src/renderer/components/SearchAutocomplete.tsx
+++ b/src/renderer/components/SearchAutocomplete.tsx
@@ -30,10 +30,8 @@ import HelpOutlineIcon from '@mui/icons-material/HelpOutline';
import TsButton from '-/components/TsButton';
import ArrowDropDownIcon from '@mui/icons-material/ArrowDropDown';
import Tooltip from '-/components/Tooltip';
-import IconButton from '@mui/material/IconButton';
-import ClearSearchIcon from '@mui/icons-material/Close';
+import TsIconButton from '-/components/TsIconButton';
import AdvancedSearchIcon from '@mui/icons-material/TuneOutlined';
-import DropDownIcon from '@mui/icons-material/ArrowDropDownOutlined';
import { actions as AppActions, AppDispatch } from '../reducers/app';
import {
getMaxSearchResults,
@@ -42,7 +40,6 @@ import {
import { FileTypeGroups, haveSearchFilters } from '-/services/search';
import { TS } from '-/tagspaces.namespace';
import { Pro } from '-/pro';
-import SavedSearchesMenu from '-/components/menus/SavedSearchesMenu';
import AppConfig from '-/AppConfig';
import { Autocomplete, Box } from '@mui/material';
import {
@@ -59,7 +56,7 @@ import {
SearchOptionType,
SearchQueryComposition,
} from '-/components/SearchOptions';
-import CloseIcon from '@mui/icons-material/Close';
+import { CloseIcon } from '-/components/CommonIcons';
import { getTagLibrary } from '-/services/taglibrary-utils';
import { getSearchOptions } from '-/components/SearchOptionsMenu';
import TsTextField from '-/components/TsTextField';
@@ -456,9 +453,9 @@ function SearchAutocomplete(props: Props) {
</span>
}
>
- <IconButton edge="end">
+ <TsIconButton edge="end">
<HelpOutlineIcon style={{ color: 'lightgray' }} />
- </IconButton>
+ </TsIconButton>
</Tooltip>
);
}
@@ -1192,7 +1189,7 @@ function SearchAutocomplete(props: Props) {
const endAdornment = (
<>
<Tooltip title={t('core:advancedSearch')}>
- <IconButton
+ <TsIconButton
id="advancedButton"
data-tid="advancedSearch"
style={{ maxHeight: 34 }}
@@ -1203,10 +1200,10 @@ function SearchAutocomplete(props: Props) {
>
<AdvancedSearchIcon fontSize={desktopMode ? 'small' : 'medium'} />
{/* <DropDownIcon /> */}
- </IconButton>
+ </TsIconButton>
</Tooltip>
<Tooltip title={t('clearSearch') + ' (ESC)'}>
- <IconButton
+ <TsIconButton
id="clearSearchID"
onClick={() => {
clearSearch();
@@ -1215,8 +1212,8 @@ function SearchAutocomplete(props: Props) {
size={desktopMode ? 'small' : 'medium'}
edge="end"
>
- <ClearSearchIcon fontSize={desktopMode ? 'small' : 'medium'} />
- </IconButton>
+ <CloseIcon fontSize={desktopMode ? 'small' : 'medium'} />
+ </TsIconButton>
</Tooltip>
</>
);
@@ -1376,7 +1373,7 @@ function SearchAutocomplete(props: Props) {
action.action,
SearchQueryComposition.ACCURACY,
) && (
- <IconButton
+ <TsIconButton
onClick={() => {
handleChange(null, [option], 'remove-value');
}}
@@ -1388,7 +1385,7 @@ function SearchAutocomplete(props: Props) {
data-tid={dataTidFormat('close' + option)}
>
<CloseIcon fontSize="small" />
- </IconButton>
+ </TsIconButton>
)}
</Box>
);
diff --git a/src/renderer/components/SearchPopover.tsx b/src/renderer/components/SearchPopover.tsx
index 1b6ce5298..e4d31c7da 100644
--- a/src/renderer/components/SearchPopover.tsx
+++ b/src/renderer/components/SearchPopover.tsx
@@ -33,7 +33,7 @@ import TsMenuList from '-/components/TsMenuList';
import FormHelperText from '@mui/material/FormHelperText';
import InputAdornment from '@mui/material/InputAdornment';
import { InfoTooltipIcon } from '-/components/CommonIcons';
-import IconButton from '@mui/material/IconButton';
+import TsIconButton from '-/components/TsIconButton';
import Select from '@mui/material/Select';
import FormControl from '@mui/material/FormControl';
import ButtonGroup from '@mui/material/ButtonGroup';
@@ -511,13 +511,13 @@ function SearchPopover(props: Props) {
>
{'(' + indexStatus + ')'}
</Typography>
- <IconButton
+ <TsIconButton
style={{ marginLeft: 'auto' }}
data-tid="closeSearchTID"
onClick={props.onClose}
>
<CloseIcon />
- </IconButton>
+ </TsIconButton>
</div>
<div
style={{
@@ -574,7 +574,11 @@ function SearchPopover(props: Props) {
</FormControl>
</ProTooltip>
</Grid>
- <Grid item xs={3} style={{ display: 'flex', alignSelf: 'center' }}>
+ <Grid
+ item
+ xs={3}
+ style={{ display: 'flex', alignSelf: 'center', paddingTop: 40 }}
+ >
<ButtonGroup
style={{
textAlign: 'center',
@@ -583,24 +587,22 @@ function SearchPopover(props: Props) {
>
{searchQuery.uuid && (
<Tooltip title={t('editSavedSearchTitle')}>
- <IconButton
+ <TsIconButton
data-tid="editSearchBtnTID"
- size="small"
onClick={() => saveSearch(false)}
>
<EditIcon />
- </IconButton>
+ </TsIconButton>
</Tooltip>
)}
<Tooltip title={t('createNewSavedSearchTitle')}>
- <IconButton
+ <TsIconButton
disabled={!Pro}
data-tid="addSearchBtnTID"
- size="small"
onClick={() => saveSearch()}
>
<CreateFileIcon />
- </IconButton>
+ </TsIconButton>
</Tooltip>
</ButtonGroup>
</Grid>
@@ -806,102 +808,102 @@ function SearchPopover(props: Props) {
{t('core:anyType')}
</MenuItem>
<MenuItem value={JSON.stringify(FileTypeGroups.folders)}>
- <IconButton>
+ <TsIconButton>
<FolderIcon />
- </IconButton>
+ </TsIconButton>
{t('core:searchFolders')}
</MenuItem>
<MenuItem value={JSON.stringify(FileTypeGroups.files)}>
- <IconButton>
+ <TsIconButton>
<FileIcon />
- </IconButton>
+ </TsIconButton>
{t('core:searchFiles')}
</MenuItem>
<MenuItem value={JSON.stringify(FileTypeGroups.untagged)}>
- <IconButton>
+ <TsIconButton>
<UntaggedIcon />
- </IconButton>
+ </TsIconButton>
{t('core:searchUntaggedEntries')}
</MenuItem>
<MenuItem
value={JSON.stringify(FileTypeGroups.images)}
title={FileTypeGroups.images.toString()}
>
- <IconButton>
+ <TsIconButton>
<PictureIcon />
- </IconButton>
+ </TsIconButton>
{t('core:searchPictures')}
</MenuItem>
<MenuItem
value={JSON.stringify(FileTypeGroups.documents)}
title={FileTypeGroups.documents.toString()}
>
- <IconButton>
+ <TsIconButton>
<DocumentIcon />
- </IconButton>
+ </TsIconButton>
{t('core:searchDocuments')}
</MenuItem>
<MenuItem
value={JSON.stringify(FileTypeGroups.notes)}
title={FileTypeGroups.notes.toString()}
>
- <IconButton>
+ <TsIconButton>
<NoteIcon />
- </IconButton>
+ </TsIconButton>
{t('core:searchNotes')}
</MenuItem>
<MenuItem
value={JSON.stringify(FileTypeGroups.audio)}
title={FileTypeGroups.audio.toString()}
>
- <IconButton>
+ <TsIconButton>
<AudioIcon />
- </IconButton>
+ </TsIconButton>
{t('core:searchAudio')}
</MenuItem>
<MenuItem
value={JSON.stringify(FileTypeGroups.video)}
title={FileTypeGroups.video.toString()}
>
- <IconButton>
+ <TsIconButton>
<VideoIcon />
- </IconButton>
+ </TsIconButton>
{t('core:searchVideoFiles')}
</MenuItem>
<MenuItem
value={JSON.stringify(FileTypeGroups.archives)}
title={FileTypeGroups.archives.toString()}
>
- <IconButton>
+ <TsIconButton>
<ArchiveIcon />
- </IconButton>
+ </TsIconButton>
{t('core:searchArchives')}
</MenuItem>
<MenuItem
value={JSON.stringify(FileTypeGroups.bookmarks)}
title={FileTypeGroups.bookmarks.toString()}
>
- <IconButton>
+ <TsIconButton>
<BookmarkIcon />
- </IconButton>
+ </TsIconButton>
{t('core:searchBookmarks')}
</MenuItem>
<MenuItem
value={JSON.stringify(FileTypeGroups.ebooks)}
title={FileTypeGroups.ebooks.toString()}
>
- <IconButton>
+ <TsIconButton>
<BookIcon />
- </IconButton>
+ </TsIconButton>
{t('core:searchEbooks')}
</MenuItem>
<MenuItem
value={JSON.stringify(FileTypeGroups.emails)}
title={FileTypeGroups.emails.toString()}
>
- <IconButton>
+ <TsIconButton>
<EmailIcon />
- </IconButton>
+ </TsIconButton>
{t('core:searchEmails')}
</MenuItem>
{/* </TsMenuList> */}
diff --git a/src/renderer/components/StoredSearches.tsx b/src/renderer/components/StoredSearches.tsx
index 402d42b97..a526c57fa 100644
--- a/src/renderer/components/StoredSearches.tsx
+++ b/src/renderer/components/StoredSearches.tsx
@@ -20,7 +20,7 @@ import React, { useContext, useReducer, useRef, useState } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import classNames from 'classnames';
-import IconButton from '@mui/material/IconButton';
+import TsIconButton from '-/components/TsIconButton';
import TsButton from '-/components/TsButton';
import Grid from '@mui/material/Grid';
import EditIcon from '@mui/icons-material/Edit';
@@ -66,7 +66,9 @@ interface Props {
setFileEditHistory: (value: boolean) => void;
}
-const SaveSearchDialog = Pro && Pro.UI ? Pro.UI.SaveSearchDialog : false;
+const SaveSearchDialog = Pro?.UI?.SaveSearchDialog
+ ? Pro.UI.SaveSearchDialog
+ : false;
function StoredSearches(props: Props) {
const { t } = useTranslation();
@@ -188,7 +190,7 @@ function StoredSearches(props: Props) {
>
<Grid container direction="row">
<Grid item xs={10} style={{ alignSelf: 'center' }}>
- <IconButton
+ <TsIconButton
data-tid={
props.storedSearchesVisible
? 'storedSearchesVisibleTID'
@@ -198,17 +200,15 @@ function StoredSearches(props: Props) {
onClick={() =>
props.setStoredSearchesVisible(!props.storedSearchesVisible)
}
- size="large"
>
{props.storedSearchesVisible ? (
<ArrowDownIcon />
) : (
<ArrowRightIcon />
)}
- </IconButton>
+ </TsIconButton>
<Typography
variant="inherit"
- // className={props.classes.header}
style={{ display: 'inline' }}
noWrap
onClick={() =>
@@ -230,14 +230,12 @@ function StoredSearches(props: Props) {
fileInputRef.current.click();
}}
/>
- <IconButton
+ <TsIconButton
data-tid="StoredSearchesMenuTID"
- style={{ minWidth: 'auto', padding: 7 }}
onClick={handleSearchMenu}
- size="large"
>
<MenuIcon />
- </IconButton>
+ </TsIconButton>
</Grid>
</Grid>
<Grid container direction="row">
@@ -256,6 +254,7 @@ function StoredSearches(props: Props) {
'StoredSearchTID' +
search.title.trim().replaceAll(/\s+/g, '-')
}
+ variant="text"
style={{
textTransform: 'none',
fontWeight: 'normal',
@@ -278,27 +277,25 @@ function StoredSearches(props: Props) {
</TsButton>
</Grid>
<Grid item xs={2}>
- <IconButton
+ <TsIconButton
aria-label={t('core:searchEditBtn')}
onClick={() => editSearch(search.uuid)}
data-tid="editSearchTID"
- size="small"
>
<EditIcon />
- </IconButton>
+ </TsIconButton>
</Grid>
</ListItem>
))}
<Grid container direction="row">
<Grid item xs={10} style={{ alignSelf: 'center' }}>
- <IconButton
+ <TsIconButton
data-tid="BookmarksTID"
style={{ minWidth: 'auto', padding: 7 }}
onClick={() => props.setShowBookmarks(!props.showBookmarks)}
- size="large"
>
{props.showBookmarks ? <ArrowDownIcon /> : <ArrowRightIcon />}
- </IconButton>
+ </TsIconButton>
<Typography
variant="inherit"
style={{ display: 'inline' }}
@@ -309,17 +306,15 @@ function StoredSearches(props: Props) {
</Typography>
</Grid>
<Grid item xs={2} style={{ alignSelf: 'center' }}>
- <IconButton
+ <TsIconButton
data-tid="BookmarksMenuTID"
- style={{ minWidth: 'auto', padding: 7 }}
onClick={(event: any) => {
menuHistoryKey.current = historyKeys.fileOpenKey;
setBookmarksMenuAnchorEl(event.currentTarget);
}}
- size="large"
>
<MenuIcon />
- </IconButton>
+ </TsIconButton>
</Grid>
</Grid>
<Grid container direction="row">
@@ -338,7 +333,7 @@ function StoredSearches(props: Props) {
)}
<Grid container direction="row">
<Grid item xs={10} style={{ alignSelf: 'center' }}>
- <IconButton
+ <TsIconButton
data-tid={
props.fileOpenHistory
? 'fileCloseHistoryTID'
@@ -346,10 +341,9 @@ function StoredSearches(props: Props) {
}
style={{ minWidth: 'auto', padding: 7 }}
onClick={() => props.setFileOpenHistory(!props.fileOpenHistory)}
- size="large"
>
{props.fileOpenHistory ? <ArrowDownIcon /> : <ArrowRightIcon />}
- </IconButton>
+ </TsIconButton>
<Typography
variant="inherit"
style={{ display: 'inline' }}
@@ -360,17 +354,15 @@ function StoredSearches(props: Props) {
</Typography>
</Grid>
<Grid item xs={2} style={{ alignSelf: 'center' }}>
- <IconButton
+ <TsIconButton
data-tid="fileOpenMenuTID"
- style={{ minWidth: 'auto', padding: 7 }}
onClick={(event: any) => {
menuHistoryKey.current = historyKeys.fileOpenKey;
setHistoryMenuAnchorEl(event.currentTarget);
}}
- size="large"
>
<MenuIcon />
- </IconButton>
+ </TsIconButton>
</Grid>
</Grid>
<Grid container direction="row">
@@ -389,17 +381,15 @@ function StoredSearches(props: Props) {
)}
<Grid container direction="row">
<Grid item xs={10} style={{ alignSelf: 'center' }}>
- <IconButton
+ <TsIconButton
data-tid="fileEditHistoryTID"
style={{ minWidth: 'auto', padding: 7 }}
onClick={() => props.setFileEditHistory(!props.fileEditHistory)}
- size="large"
>
{props.fileEditHistory ? <ArrowDownIcon /> : <ArrowRightIcon />}
- </IconButton>
+ </TsIconButton>
<Typography
variant="inherit"
- // className={props.classes.header}
style={{ display: 'inline' }}
noWrap
onClick={() => props.setFileEditHistory(!props.fileEditHistory)}
@@ -408,17 +398,15 @@ function StoredSearches(props: Props) {
</Typography>
</Grid>
<Grid item xs={2} style={{ alignSelf: 'center' }}>
- <IconButton
+ <TsIconButton
data-tid="FileEditedMenuTID"
- style={{ minWidth: 'auto', padding: 7 }}
onClick={(event: any) => {
menuHistoryKey.current = historyKeys.fileEditKey;
setHistoryMenuAnchorEl(event.currentTarget);
}}
- size="large"
>
<MenuIcon />
- </IconButton>
+ </TsIconButton>
</Grid>
</Grid>
<Grid container direction="row">
@@ -437,7 +425,7 @@ function StoredSearches(props: Props) {
)}
<Grid container direction="row">
<Grid item xs={10} style={{ alignSelf: 'center' }}>
- <IconButton
+ <TsIconButton
data-tid={
props.folderOpenHistory
? 'folderCloseHistoryTID'
@@ -447,10 +435,9 @@ function StoredSearches(props: Props) {
onClick={() =>
props.setFolderOpenHistory(!props.folderOpenHistory)
}
- size="large"
>
{props.folderOpenHistory ? <ArrowDownIcon /> : <ArrowRightIcon />}
- </IconButton>
+ </TsIconButton>
<Typography
variant="inherit"
style={{ display: 'inline' }}
@@ -463,17 +450,15 @@ function StoredSearches(props: Props) {
</Typography>
</Grid>
<Grid item xs={2} style={{ alignSelf: 'center' }}>
- <IconButton
+ <TsIconButton
data-tid="FolderOpenMenuTID"
- style={{ minWidth: 'auto', padding: 7 }}
onClick={(event: any) => {
menuHistoryKey.current = historyKeys.folderOpenKey;
setHistoryMenuAnchorEl(event.currentTarget);
}}
- size="large"
>
<MenuIcon />
- </IconButton>
+ </TsIconButton>
</Grid>
</Grid>
<HistoryMenu
@@ -484,7 +469,7 @@ function StoredSearches(props: Props) {
clearAll={() => {
if (Pro) {
historyContext.delAllHistory(menuHistoryKey.current);
- } //historyKeys.fileOpenKey);
+ }
forceUpdate();
}}
/>
@@ -496,7 +481,7 @@ function StoredSearches(props: Props) {
clearAll={() => {
if (Pro && bookmarksContext) {
bookmarksContext.delAllBookmarks();
- } //historyKeys.fileOpenKey);
+ }
forceUpdate();
}}
/>
@@ -524,18 +509,6 @@ function StoredSearches(props: Props) {
...searchQuery,
showUnixHiddenEntries: props.showUnixHiddenEntries,
});
-
- /* if (searchQuery.searchBoxing === 'global') {
- props.searchAllLocations({
- ...searchQuery,
- showUnixHiddenEntries: props.showUnixHiddenEntries
- });
- } else {
- props.searchLocationIndex({
- ...searchQuery,
- showUnixHiddenEntries: props.showUnixHiddenEntries
- });
- } */
}
}}
onClearSearch={() => console.log('search deleted')}
@@ -599,11 +572,7 @@ const areEqual = (prevProp, nextProp) =>
nextProp.fileOpenHistory === prevProp.fileOpenHistory &&
nextProp.folderOpenHistory === prevProp.folderOpenHistory &&
nextProp.fileEditHistory === prevProp.fileEditHistory &&
- // nextProp.indexing === prevProp.indexing &&
nextProp.currentDirectory === prevProp.currentDirectory;
-// nextProp.indexedEntriesCount === prevProp.indexedEntriesCount &&
-// JSON.stringify(nextProp.searches) === JSON.stringify(prevProp.searches);
-// JSON.stringify(nextProp.classes) === JSON.stringify(prevProp.classes);
export default connect(
mapStateToProps,
diff --git a/src/renderer/components/dialogs/CreateEditLocationDialog.tsx b/src/renderer/components/dialogs/CreateEditLocationDialog.tsx
index 07182d939..22290b7d2 100644
--- a/src/renderer/components/dialogs/CreateEditLocationDialog.tsx
+++ b/src/renderer/components/dialogs/CreateEditLocationDialog.tsx
@@ -1098,7 +1098,6 @@ function CreateEditLocationDialog(props: Props) {
setNewLocationID(getUuid());
}
}}
- size="large"
>
<IDIcon />
</IconButton>
diff --git a/src/renderer/components/dialogs/DialogCloseButton.tsx b/src/renderer/components/dialogs/DialogCloseButton.tsx
index a18ed5be2..91abefec3 100644
--- a/src/renderer/components/dialogs/DialogCloseButton.tsx
+++ b/src/renderer/components/dialogs/DialogCloseButton.tsx
@@ -17,8 +17,8 @@
*/
import React from 'react';
-import IconButton from '@mui/material/IconButton';
-import { CloseIcon } from '../CommonIcons';
+import TsIconButton from '-/components/TsIconButton';
+import { CloseIcon } from '-/components/CommonIcons';
import { useTranslation } from 'react-i18next';
interface Props {
@@ -30,7 +30,7 @@ function DialogCloseButton(props: Props) {
const { onClose, testId } = props;
const { t } = useTranslation();
return (
- <IconButton
+ <TsIconButton
title={t('closeButtonDialog')}
aria-label="close"
tabIndex={-1}
@@ -41,10 +41,9 @@ function DialogCloseButton(props: Props) {
}}
data-tid={testId && testId}
onClick={onClose}
- size="large"
>
<CloseIcon />
- </IconButton>
+ </TsIconButton>
);
}
diff --git a/src/renderer/components/dialogs/LocalForm.tsx b/src/renderer/components/dialogs/LocalForm.tsx
index 0e677771e..7f975ffd7 100644
--- a/src/renderer/components/dialogs/LocalForm.tsx
+++ b/src/renderer/components/dialogs/LocalForm.tsx
@@ -94,7 +94,7 @@ function LocalForm(props: Props) {
InputProps={{
endAdornment: (
<InputAdornment position="end" style={{ height: 32 }}>
- <IconButton onClick={openDirectory} size="large">
+ <IconButton onClick={openDirectory}>
<FolderIcon />
</IconButton>
</InputAdornment>
diff --git a/src/renderer/components/dialogs/ObjectStoreForm.tsx b/src/renderer/components/dialogs/ObjectStoreForm.tsx
index 1eacbf40a..0e76ffd16 100644
--- a/src/renderer/components/dialogs/ObjectStoreForm.tsx
+++ b/src/renderer/components/dialogs/ObjectStoreForm.tsx
@@ -21,7 +21,7 @@ import Autocomplete from '@mui/material/Autocomplete';
import Grid from '@mui/material/Grid';
import FormControl from '@mui/material/FormControl';
import FormHelperText from '@mui/material/FormHelperText';
-import IconButton from '@mui/material/IconButton';
+import TsIconButton from '-/components/TsIconButton';
import TsTextField from '-/components/TsTextField';
import InputAdornment from '@mui/material/InputAdornment';
import Visibility from '@mui/icons-material/Visibility';
@@ -223,15 +223,14 @@ function ObjectStoreForm(props: Props) {
endAdornment: (
<InputAdornment position="end">
<TooltipTS title={t('toggleKeyVisibility')}>
- <IconButton
+ <TsIconButton
aria-label="toggle password visibility"
onClick={() =>
setShowSecretAccessKey(!showSecretAccessKey)
}
- size="large"
>
{showSecretAccessKey ? <Visibility /> : <VisibilityOff />}
- </IconButton>
+ </TsIconButton>
</TooltipTS>
</InputAdornment>
),
diff --git a/src/renderer/components/dialogs/WebdavForm.tsx b/src/renderer/components/dialogs/WebdavForm.tsx
index 9bc5a8b46..ced4cdbae 100644
--- a/src/renderer/components/dialogs/WebdavForm.tsx
+++ b/src/renderer/components/dialogs/WebdavForm.tsx
@@ -21,13 +21,8 @@ import React, { ChangeEvent } from 'react';
import FormControl from '@mui/material/FormControl';
import TextField from '@mui/material/TextField';
import InputLabel from '@mui/material/InputLabel';
-import {
- Grid,
- IconButton,
- InputAdornment,
- MenuItem,
- Select,
-} from '@mui/material';
+import TsIconButton from '-/components/TsIconButton';
+import { Grid, InputAdornment, MenuItem, Select } from '@mui/material';
import { Visibility, VisibilityOff } from '@mui/icons-material';
import { useTranslation } from 'react-i18next';
@@ -146,13 +141,12 @@ function WebdavForm(props: Props) {
InputProps={{
endAdornment: (
<InputAdornment position="end">
- <IconButton
+ <TsIconButton
aria-label="toggle password visibility"
onClick={() => setShowPassword(!showPassword)}
- size="large"
>
{showPassword ? <Visibility /> : <VisibilityOff />}
- </IconButton>
+ </TsIconButton>
</InputAdornment>
),
}}
@@ -177,13 +171,12 @@ function WebdavForm(props: Props) {
InputProps={{
endAdornment: (
<InputAdornment position="end">
- <IconButton
+ <TsIconButton
aria-label="toggle password visibility"
onClick={() => setShowPassword(!showPassword)}
- size="large"
>
{showPassword ? <Visibility /> : <VisibilityOff />}
- </IconButton>
+ </TsIconButton>
</InputAdornment>
),
}}
diff --git a/src/renderer/components/dialogs/settings/SettingsExtensions.tsx b/src/renderer/components/dialogs/settings/SettingsExtensions.tsx
index 7715d9651..7988c077b 100644
--- a/src/renderer/components/dialogs/settings/SettingsExtensions.tsx
+++ b/src/renderer/components/dialogs/settings/SettingsExtensions.tsx
@@ -25,7 +25,7 @@ import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
import Box from '@mui/material/Box';
import List from '@mui/material/List';
import ListItem from '@mui/material/ListItem';
-import IconButton from '@mui/material/IconButton';
+import TsIconButton from '-/components/TsIconButton';
import Switch from '@mui/material/Switch';
import TsButton from '-/components/TsButton';
import DeleteIcon from '@mui/icons-material/Delete';
@@ -168,16 +168,15 @@ function SettingsExtensions() {
}}
/>
<Tooltip title={t('core:removeExtension')}>
- <IconButton
+ <TsIconButton
aria-label={t('core:delete')}
onClick={() => {
setRemoveExtDialogOpened(ext);
}}
data-tid="removeExtensionTID"
- size="large"
>
<DeleteIcon color={'action'} />
- </IconButton>
+ </TsIconButton>
</Tooltip>
</ListItem>
))}
diff --git a/src/renderer/components/dialogs/settings/SettingsFileTypes.tsx b/src/renderer/components/dialogs/settings/SettingsFileTypes.tsx
index 504e5244e..3e15aee13 100644
--- a/src/renderer/components/dialogs/settings/SettingsFileTypes.tsx
+++ b/src/renderer/components/dialogs/settings/SettingsFileTypes.tsx
@@ -23,7 +23,7 @@ import { getUuid } from '@tagspaces/tagspaces-common/utils-io';
import MenuItem from '@mui/material/MenuItem';
import Input from '@mui/material/Input';
import FormControl from '@mui/material/FormControl';
-import IconButton from '@mui/material/IconButton';
+import TsIconButton from '-/components/TsIconButton';
import RemoveIcon from '@mui/icons-material/RemoveCircle';
import TsButton from '-/components/TsButton';
import Select from '@mui/material/Select';
@@ -457,14 +457,13 @@ function SettingsFileTypes() {
</Tooltip>
</TransparentBackground>
<Tooltip title={t('removeFileType', { itemType: item.type })}>
- <IconButton
+ <TsIconButton
data-tid="settingsFileTypes_remove_"
className={classes.fileExtRemove}
onClick={() => onRemoveItem(item)}
- size="large"
>
<RemoveIcon />
- </IconButton>
+ </TsIconButton>
</Tooltip>
</TableCell>
</React.Fragment>
diff --git a/src/renderer/components/menus/LocationManagerMenu.tsx b/src/renderer/components/menus/LocationManagerMenu.tsx
index d72ad3be2..f36a42e50 100644
--- a/src/renderer/components/menus/LocationManagerMenu.tsx
+++ b/src/renderer/components/menus/LocationManagerMenu.tsx
@@ -26,7 +26,7 @@ import CloseIcon from '@mui/icons-material/Close';
import UpdateIndexIcon from '@mui/icons-material/Update';
import classNames from 'classnames';
import Typography from '@mui/material/Typography';
-import IconButton from '@mui/material/IconButton';
+import TsIconButton from '-/components/TsIconButton';
import MoreVertIcon from '@mui/icons-material/MoreVert';
import AppConfig from '-/AppConfig';
import { Pro } from '../../pro';
@@ -207,15 +207,14 @@ function LocationManagerMenu(props: Props) {
>
{t('core:locationManager')}
</Typography>
- <IconButton
+ <TsIconButton
data-tid="locationManagerMenu"
onClick={(event) =>
setLocationManagerMenuAnchorEl(event.currentTarget)
}
- size="large"
>
<MoreVertIcon />
- </IconButton>
+ </TsIconButton>
</div>
<Menu
anchorEl={locationManagerMenuAnchorEl}
diff --git a/src/renderer/components/menus/LocationMenu.tsx b/src/renderer/components/menus/LocationMenu.tsx
index 02334cd25..c693b12e5 100644
--- a/src/renderer/components/menus/LocationMenu.tsx
+++ b/src/renderer/components/menus/LocationMenu.tsx
@@ -16,6 +16,7 @@
*
*/
+/**
import React, { useState } from 'react';
import Menu from '@mui/material/Menu';
import MenuItem from '@mui/material/MenuItem';
@@ -134,3 +135,5 @@ function LocationMenu(props: Props) {
}
export default LocationMenu;
+
+*/
diff --git a/src/renderer/containers/PageNotification.tsx b/src/renderer/containers/PageNotification.tsx
index 869ed79ce..70abf53a9 100644
--- a/src/renderer/containers/PageNotification.tsx
+++ b/src/renderer/containers/PageNotification.tsx
@@ -21,7 +21,7 @@ import { useDispatch, useSelector } from 'react-redux';
import { styled } from '@mui/material/styles';
import Snackbar from '@mui/material/Snackbar';
import TsButton from '-/components/TsButton';
-import IconButton from '@mui/material/IconButton';
+import TsIconButton from '-/components/TsIconButton';
import CloseIcon from '@mui/icons-material/Close';
import { getLastPublishedVersion } from '-/reducers/settings';
import {
@@ -89,16 +89,15 @@ function PageNotification() {
autoHideDuration={notificationStatus.autohide ? 3000 : undefined}
message={notificationStatus.text}
action={[
- <IconButton
+ <TsIconButton
data-tid={'close' + notificationStatus.tid}
key="close"
aria-label={t('core:closeButton')}
color="inherit"
onClick={() => hideNotifications()}
- size="large"
>
<CloseIcon />
- </IconButton>,
+ </TsIconButton>,
]}
/>
{isGeneratingThumbs && (
@@ -108,15 +107,14 @@ function PageNotification() {
autoHideDuration={undefined}
message={t('core:loadingOrGeneratingThumbnails')}
action={[
- <IconButton
+ <TsIconButton
key="closeButton"
aria-label={t('core:closeButton')}
color="inherit"
onClick={() => setGeneratingThumbs(false)}
- size="large"
>
<CloseIcon />
- </IconButton>,
+ </TsIconButton>,
]}
/>
)}
diff --git a/src/renderer/perspectives/grid/components/MainToolbar.tsx b/src/renderer/perspectives/grid/components/MainToolbar.tsx
index 9083c911a..27e838aea 100644
--- a/src/renderer/perspectives/grid/components/MainToolbar.tsx
+++ b/src/renderer/perspectives/grid/components/MainToolbar.tsx
@@ -25,9 +25,7 @@ import Tooltip from '-/components/Tooltip';
import TsIconButton from '-/components/TsIconButton';
import SortingIcon from '@mui/icons-material/SwapVerticalCircle';
import ShareIcon from '@mui/icons-material/Share';
-// import DragOnIcon from '@mui/icons-material/PanTool';
import DragOnIcon from '@mui/icons-material/CopyAllTwoTone';
-// import DragOffIcon from '@mui/icons-material/PanToolOutlined';
import DragOffIcon from '@mui/icons-material/CopyAll';
import {
SelectedIcon,