TagSpaces is an offline, open source, document manager with tagging support
chore: removing ts-ignore comments
Ilian Sapundshiev69fdaf461a0b
diff --git a/src/renderer/components/CustomLogo.tsx b/src/renderer/components/CustomLogo.tsxindex e160d8ce6..29c7f06f3 100644--- a/src/renderer/components/CustomLogo.tsx+++ b/src/renderer/components/CustomLogo.tsx@@ -71,11 +71,12 @@ function CustomLogo() {horizontal: 'right',}}invisible={!updateAvailable}- style={{- // @ts-ignore- WebkitAppRegion: 'no-drag',- marginTop: 7,- }}+ style={+ {+ marginTop: 7,+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }>{AppConfig.showTSLogo && (<TsIconButton@@ -83,12 +84,13 @@ function CustomLogo() {style={{ padding: 0, marginTop: -5, height: 40 }}><img- style={{- width: 30,- height: 30,- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ width: 30,+ height: 30,+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }src={LogoIcon}alt="TagSpaces Logo"/>@@ -100,12 +102,13 @@ function CustomLogo() {data-tid="aboutTagSpaces"><img- style={{- maxHeight: 26,- maxWidth: 200,- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ maxHeight: 26,+ maxWidth: 200,+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }src={logo}alt="Application Logo"/>@@ -126,14 +129,15 @@ function CustomLogo() {</sup><sub><Typography- style={{- display: 'inline',- fontSize: '10px',- marginLeft: -25,- lineHeight: '40px',- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ display: 'inline',+ fontSize: '10px',+ marginLeft: -25,+ lineHeight: '40px',+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }>{tsType}</Typography>diff --git a/src/renderer/components/EntryContainerTitle.tsx b/src/renderer/components/EntryContainerTitle.tsxindex 765abd2bc..c118bb407 100644--- a/src/renderer/components/EntryContainerTitle.tsx+++ b/src/renderer/components/EntryContainerTitle.tsx@@ -168,10 +168,11 @@ function EntryContainerTitle(props: Props) {title={t('closeButtonDialog')}aria-label="close"tabIndex={-1}- style={{- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }data-tid="fileContainerCloseOpenedFile"onClick={startClosingEntry}>@@ -203,15 +204,16 @@ function EntryContainerTitle(props: Props) {onClick={(event: React.MouseEvent<HTMLElement>) => {setAnchorEl(event.currentTarget);}}- style={{- backgroundColor: fileSystemEntryColor,- display: 'flex',- alignItems: 'center',- textTransform: 'uppercase',- paddingLeft: 10,- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ backgroundColor: fileSystemEntryColor,+ display: 'flex',+ alignItems: 'center',+ textTransform: 'uppercase',+ paddingLeft: 10,+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }>{//'.' +@@ -233,14 +235,15 @@ function EntryContainerTitle(props: Props) {onClick={(event: React.MouseEvent<HTMLElement>) => {setAnchorEl(event.currentTarget);}}- style={{- backgroundColor: AppConfig.defaultFolderColor,- display: 'flex',- alignItems: 'center',- paddingLeft: 10,- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ backgroundColor: AppConfig.defaultFolderColor,+ display: 'flex',+ alignItems: 'center',+ paddingLeft: 10,+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }><FolderIcon sx={{ fontSize: '20px' }} /><MoreMenuIcon sx={{ fontSize: '20px' }} />@@ -267,10 +270,11 @@ function EntryContainerTitle(props: Props) {data-tid="toggleBookmarkTID"aria-label="bookmark"onClick={bookmarkClick}- style={{- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }>{bookmarksContext &&bookmarksContext.haveBookmark(openedEntry.path) ? (diff --git a/src/renderer/components/FolderContainer.tsx b/src/renderer/components/FolderContainer.tsxindex 79662da66..74a16981b 100644--- a/src/renderer/components/FolderContainer.tsx+++ b/src/renderer/components/FolderContainer.tsx@@ -267,11 +267,11 @@ function FolderContainer(props: Props) {><TsIconButtonid="mobileMenuButton"- style={{- // @ts-ignore- WebkitAppRegion: 'no-drag',- // transform: drawerOpened ? 'rotate(0deg)' : 'rotate(180deg)',- }}+ style={+ {+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }onClick={toggleDrawer}><MainMenuIcon />@@ -283,10 +283,11 @@ function FolderContainer(props: Props) {id="goBackButton"disabled={historyIndex === 0}onClick={goBack}- style={{- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }><GoBackIcon /></TsIconButton>@@ -296,10 +297,11 @@ function FolderContainer(props: Props) {id="goForwardButton"disabled={historyIndex === 0}onClick={goForward}- style={{- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }><GoForwardIcon /></TsIconButton>@@ -323,10 +325,11 @@ function FolderContainer(props: Props) {}data-tid="toggleSearch"onClick={openSearchMode}- style={{- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }><SearchIcon /></TsIconButton>@@ -335,13 +338,14 @@ function FolderContainer(props: Props) {data-tid="toggleSearch"onClick={openSearchMode}startIcon={<SearchIcon />}- style={{- // @ts-ignore- WebkitAppRegion: 'no-drag',- marginRight: 5,- whiteSpace: 'nowrap',- overflow: 'hidden',- }}+ style={+ {+ marginRight: 5,+ whiteSpace: 'nowrap',+ overflow: 'hidden',+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }>{t('core:searchTitle')}<span style={{ width: 10 }} />@@ -355,13 +359,14 @@ function FolderContainer(props: Props) {title={t('core:progress')}data-tid="uploadProgress"onClick={() => openFileUploadDialog()}- style={{- position: 'relative',- padding: '8px 12px 6px 8px',- margin: '0',- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ position: 'relative',+ padding: '8px 12px 6px 8px',+ margin: '0',+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }><CircularProgressWithLabel value={getProgressValue()} /></TsIconButton>diff --git a/src/renderer/components/PathBreadcrumbs.tsx b/src/renderer/components/PathBreadcrumbs.tsxindex fe3f923dc..7e55e1744 100644--- a/src/renderer/components/PathBreadcrumbs.tsx+++ b/src/renderer/components/PathBreadcrumbs.tsx@@ -70,7 +70,6 @@ const StyledBreadcrumbs = styled(Breadcrumbs)(({ theme }) => {return {overflowX: 'scroll',marginTop: '8px',- // @ts-ignoreWebkitAppRegion: 'no-drag','& ol': {flexWrap: 'nowrap',diff --git a/src/renderer/components/SearchAutocomplete.tsx b/src/renderer/components/SearchAutocomplete.tsxindex dd773463e..46520e684 100644--- a/src/renderer/components/SearchAutocomplete.tsx+++ b/src/renderer/components/SearchAutocomplete.tsx@@ -1251,14 +1251,15 @@ function SearchAutocomplete(props: Props) {<><divid="searchAutocompleteComp"- style={{- width: '100%',- whiteSpace: 'nowrap',- display: 'flex',- alignItems: 'center',- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ width: '100%',+ whiteSpace: 'nowrap',+ display: 'flex',+ alignItems: 'center',+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }><style>{`diff --git a/src/renderer/components/SearchBox.tsx b/src/renderer/components/SearchBox.tsxindex 12177e9f2..dfdfba8f7 100644--- a/src/renderer/components/SearchBox.tsx+++ b/src/renderer/components/SearchBox.tsx@@ -16,11 +16,11 @@**/-import React, { useState } from 'react';-import Popover from '@mui/material/Popover';-import SearchPopover from '-/components/SearchPopover';import SearchAutocomplete from '-/components/SearchAutocomplete';+import SearchPopover from '-/components/SearchPopover';import { useDirectoryContentContext } from '-/hooks/useDirectoryContentContext';+import Popover from '@mui/material/Popover';+import React, { useState } from 'react';interface Props {//open: boolean;@@ -58,10 +58,11 @@ function SearchBox(props: Props) {vertical: 'top',horizontal: 'right',}}- style={{- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }><SearchPopover onClose={() => setAnchorSearch(null)} /></Popover>diff --git a/src/renderer/components/SearchPopover.tsx b/src/renderer/components/SearchPopover.tsxindex fd8b837b0..d5a3cd4cf 100644--- a/src/renderer/components/SearchPopover.tsx+++ b/src/renderer/components/SearchPopover.tsx@@ -89,14 +89,15 @@ function SearchPopover(props: Props) {: t('core:indexEmpty');return (<div- style={{- maxWidth: 400,- height: '100%',- paddingLeft: 5,- paddingRight: 0,- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ maxWidth: 400,+ height: '100%',+ paddingLeft: 5,+ paddingRight: 0,+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }><div style={{ display: 'flex' }}><Typography variant="button" style={{ margin: '12px 0 10px 10px' }}>diff --git a/src/renderer/components/dialogs/AddTagToTagGroupDialog.tsx b/src/renderer/components/dialogs/AddTagToTagGroupDialog.tsxindex 526f25c1c..5278cce2d 100644--- a/src/renderer/components/dialogs/AddTagToTagGroupDialog.tsx+++ b/src/renderer/components/dialogs/AddTagToTagGroupDialog.tsx@@ -20,6 +20,7 @@ import DraggablePaper from '-/components/DraggablePaper';import TsButton from '-/components/TsButton';import TsSelect from '-/components/TsSelect';import TsDialogActions from '-/components/dialogs/components/TsDialogActions';+import { useEditedTagLibraryContext } from '-/hooks/useEditedTagLibraryContext';import { useTaggingActionsContext } from '-/hooks/useTaggingActionsContext';import { getTagColor, getTagTextColor } from '-/reducers/settings';import { TS } from '-/tagspaces.namespace';@@ -33,7 +34,6 @@ import React, { useState } from 'react';import { useTranslation } from 'react-i18next';import { useSelector } from 'react-redux';import TsDialogTitle from './components/TsDialogTitle';-import { useEditedTagLibraryContext } from '-/hooks/useEditedTagLibraryContext';interface Props {open: boolean;@@ -78,10 +78,11 @@ function AddTagToTagGroupDialog(props: Props) {onClick={onConfirm}data-tid="createTagsConfirmButton"variant="contained"- style={{- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }>{t('core:ok')}</TsButton>diff --git a/src/renderer/components/dialogs/ColorPickerDialog.tsx b/src/renderer/components/dialogs/ColorPickerDialog.tsxindex ca93eba8a..291ce7d47 100644--- a/src/renderer/components/dialogs/ColorPickerDialog.tsx+++ b/src/renderer/components/dialogs/ColorPickerDialog.tsx@@ -85,10 +85,11 @@ function ColorPickerDialog(props: Props) {variant="contained"onClick={onConfirm}data-tid="colorPickerConfirm"- style={{- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }>{t('core:ok')}</TsButton>diff --git a/src/renderer/components/dialogs/CreateDirectoryDialog.tsx b/src/renderer/components/dialogs/CreateDirectoryDialog.tsxindex da941515b..5d0270eb8 100644--- a/src/renderer/components/dialogs/CreateDirectoryDialog.tsx+++ b/src/renderer/components/dialogs/CreateDirectoryDialog.tsx@@ -176,10 +176,11 @@ function CreateDirectoryDialog(props: Props) {data-tid="confirmCreateNewDirectory"id="confirmCreateNewDirectory"variant="contained"- style={{- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }>{t('core:ok')}</TsButton>diff --git a/src/renderer/components/dialogs/CreateEditLocationDialog.tsx b/src/renderer/components/dialogs/CreateEditLocationDialog.tsxindex b41ef4c15..9d81c3f1c 100644--- a/src/renderer/components/dialogs/CreateEditLocationDialog.tsx+++ b/src/renderer/components/dialogs/CreateEditLocationDialog.tsx@@ -605,10 +605,11 @@ function CreateEditLocationDialog(props: Props) {onClick={preConfirm}data-tid="confirmLocationCreation"variant="contained"- style={{- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }>{t('core:ok')}</TsButton>diff --git a/src/renderer/components/dialogs/CreateTagGroupDialog.tsx b/src/renderer/components/dialogs/CreateTagGroupDialog.tsxindex 1f0a48bf1..0ad796318 100644--- a/src/renderer/components/dialogs/CreateTagGroupDialog.tsx+++ b/src/renderer/components/dialogs/CreateTagGroupDialog.tsx@@ -170,10 +170,11 @@ function CreateTagGroupDialog(props: Props) {onClick={onConfirm}variant="contained"data-tid="createTagGroupConfirmButton"- style={{- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }>{t('core:ok')}</TsButton>diff --git a/src/renderer/components/dialogs/CreateTagsDialog.tsx b/src/renderer/components/dialogs/CreateTagsDialog.tsxindex f71505782..49450f97b 100644--- a/src/renderer/components/dialogs/CreateTagsDialog.tsx+++ b/src/renderer/components/dialogs/CreateTagsDialog.tsx@@ -93,10 +93,11 @@ function CreateTagsDialog(props: Props) {onClick={onConfirm}data-tid="createTagsConfirmButton"variant="contained"- style={{- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }>{t('core:ok')}</TsButton>diff --git a/src/renderer/components/dialogs/DownloadUrlDialog.tsx b/src/renderer/components/dialogs/DownloadUrlDialog.tsxindex fb938c502..ffda571d9 100644--- a/src/renderer/components/dialogs/DownloadUrlDialog.tsx+++ b/src/renderer/components/dialogs/DownloadUrlDialog.tsx@@ -151,10 +151,11 @@ function DownloadUrlDialog(props: Props) {variant="contained"data-tid={'downloadFileUrlTID'}onClick={() => downloadURL()}- style={{- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }>{t('core:ok')}</TsButton>diff --git a/src/renderer/components/dialogs/EditTagDialog.tsx b/src/renderer/components/dialogs/EditTagDialog.tsxindex 7bd15569a..5220fd741 100644--- a/src/renderer/components/dialogs/EditTagDialog.tsx+++ b/src/renderer/components/dialogs/EditTagDialog.tsx@@ -120,10 +120,11 @@ function EditTagDialog(props: Props) {onClick={onConfirm}data-tid="editTagConfirm"variant="contained"- style={{- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }>{t('core:ok')}</TsButton>diff --git a/src/renderer/components/dialogs/EditTagGroupDialog.tsx b/src/renderer/components/dialogs/EditTagGroupDialog.tsxindex 1f0748c68..e9f273a75 100644--- a/src/renderer/components/dialogs/EditTagGroupDialog.tsx+++ b/src/renderer/components/dialogs/EditTagGroupDialog.tsx@@ -173,10 +173,11 @@ function EditTagGroupDialog(props: Props) {onClick={onConfirm}data-tid="editTagGroupConfirmButton"variant="contained"- style={{- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }>{t('core:ok')}</TsButton>diff --git a/src/renderer/components/dialogs/KeyboardDialog.tsx b/src/renderer/components/dialogs/KeyboardDialog.tsxindex 9cb8cba65..5de448bc0 100644--- a/src/renderer/components/dialogs/KeyboardDialog.tsx+++ b/src/renderer/components/dialogs/KeyboardDialog.tsx@@ -76,10 +76,11 @@ function KeyboardDialog(props: Props) {data-tid="closeKeyboardDialog"onClick={onClose}variant="outlined"- style={{- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }>{t('core:ok')}</TsButton>diff --git a/src/renderer/components/dialogs/NewFileDialog.tsx b/src/renderer/components/dialogs/NewFileDialog.tsxindex 89481afc8..5e6431121 100644--- a/src/renderer/components/dialogs/NewFileDialog.tsx+++ b/src/renderer/components/dialogs/NewFileDialog.tsx@@ -17,7 +17,6 @@*/import AppConfig from '-/AppConfig';-import { getUuid } from '@tagspaces/tagspaces-common/utils-io';import DraggablePaper from '-/components/DraggablePaper';import TsButton from '-/components/TsButton';import CreateFile from '-/components/dialogs/components/CreateFile';@@ -31,7 +30,10 @@ import { useCurrentLocationContext } from '-/hooks/useCurrentLocationContext';import { useDirectoryContentContext } from '-/hooks/useDirectoryContentContext';import { useOpenedEntryContext } from '-/hooks/useOpenedEntryContext';import { Pro } from '-/pro';+import { getAuthor } from '-/reducers/settings';import { TS } from '-/tagspaces.namespace';+import useFirstRender from '-/utils/useFirstRender';+import versionMeta from '-/version.json';import Dialog from '@mui/material/Dialog';import DialogContent from '@mui/material/DialogContent';import Paper from '@mui/material/Paper';@@ -41,12 +43,10 @@ import {formatDateTime4Tag,locationType,} from '@tagspaces/tagspaces-common/misc';+import { getUuid } from '@tagspaces/tagspaces-common/utils-io';import { useContext, useEffect, useReducer, useRef } from 'react';import { useTranslation } from 'react-i18next';-import versionMeta from '-/version.json';-import useFirstRender from '-/utils/useFirstRender';import { useSelector } from 'react-redux';-import { getAuthor } from '-/reducers/settings';interface Props {open: boolean;@@ -197,10 +197,11 @@ function NewFileDialog(props: Props) {createFile(fileType, targetDirectoryPath);}}disabled={haveError.current}- style={{- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }>{t('core:ok')}</TsButton>diff --git a/src/renderer/components/dialogs/OpenLinkDialog.tsx b/src/renderer/components/dialogs/OpenLinkDialog.tsxindex ba2f1bfca..8c5db7b5d 100644--- a/src/renderer/components/dialogs/OpenLinkDialog.tsx+++ b/src/renderer/components/dialogs/OpenLinkDialog.tsx@@ -94,10 +94,11 @@ function OpenLinkDialog(props: Props) {onClick={onConfirm}data-tid="confirmOpenLink"variant="contained"- style={{- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }>{t('core:openLink')}</TsButton>diff --git a/src/renderer/components/dialogs/RenameEntryDialog.tsx b/src/renderer/components/dialogs/RenameEntryDialog.tsxindex 3c1b63663..a24688f98 100644--- a/src/renderer/components/dialogs/RenameEntryDialog.tsx+++ b/src/renderer/components/dialogs/RenameEntryDialog.tsx@@ -40,7 +40,6 @@ import {} from '@tagspaces/tagspaces-common/paths';import React, { useReducer, useRef, useState } from 'react';import { useTranslation } from 'react-i18next';-import { TS } from '-/tagspaces.namespace';interface Props {open: boolean;@@ -156,10 +155,11 @@ function RenameEntryDialog(props: Props) {onClick={onConfirm}data-tid="confirmRenameEntry"variant="contained"- style={{- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }>{t('core:ok')}</TsButton>diff --git a/src/renderer/components/dialogs/SaveSearchDialog.tsx b/src/renderer/components/dialogs/SaveSearchDialog.tsxindex cb75c941b..8fab88a33 100644--- a/src/renderer/components/dialogs/SaveSearchDialog.tsx+++ b/src/renderer/components/dialogs/SaveSearchDialog.tsx@@ -18,11 +18,16 @@import AppConfig from '-/AppConfig';import DraggablePaper from '-/components/DraggablePaper';+import EditSearchQuery from '-/components/EditSearchQuery';import TsButton from '-/components/TsButton';import TsTextField from '-/components/TsTextField';import TsDialogActions from '-/components/dialogs/components/TsDialogActions';import TsDialogTitle from '-/components/dialogs/components/TsDialogTitle';+import { usePanelsContext } from '-/hooks/usePanelsContext';import { useSavedSearchesContext } from '-/hooks/useSavedSearchesContext';+import { useSearchQueryContext } from '-/hooks/useSearchQueryContext';+import { AppDispatch } from '-/reducers/app';+import { actions as SettingsActions } from '-/reducers/settings';import { defaultTitle } from '-/services/search';import { TS } from '-/tagspaces.namespace';import Dialog from '@mui/material/Dialog';@@ -33,14 +38,9 @@ import Paper from '@mui/material/Paper';import { useTheme } from '@mui/material/styles';import useMediaQuery from '@mui/material/useMediaQuery';import { getUuid } from '@tagspaces/tagspaces-common/utils-io';-import { useEffect, useReducer, useRef, useState } from 'react';+import { useEffect, useReducer, useRef } from 'react';import { useTranslation } from 'react-i18next';-import { useSearchQueryContext } from '-/hooks/useSearchQueryContext';-import EditSearchQuery from '-/components/EditSearchQuery';-import { usePanelsContext } from '-/hooks/usePanelsContext';-import { AppDispatch } from '-/reducers/app';import { useDispatch } from 'react-redux';-import { actions as SettingsActions } from '-/reducers/settings';interface Props {open: boolean;@@ -130,10 +130,11 @@ function SaveSearchDialog(props: Props) {onClick={onConfirm}data-tid="confirmSavedSearchTID"variant="contained"- style={{- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }>{t('core:ok')}</TsButton>diff --git a/src/renderer/components/dialogs/SettingsDialog.tsx b/src/renderer/components/dialogs/SettingsDialog.tsxindex 9542dc779..78a46f5ff 100644--- a/src/renderer/components/dialogs/SettingsDialog.tsx+++ b/src/renderer/components/dialogs/SettingsDialog.tsx@@ -26,7 +26,6 @@ import {} from '-/components/CommonIcons';import DraggablePaper from '-/components/DraggablePaper';import { BetaLabel } from '-/components/HelperComponents';-import ArticleIcon from '@mui/icons-material/Article';import TsButton from '-/components/TsButton';import SettingsAI from '-/components/dialogs/components/SettingsAI';import SettingsAdvanced from '-/components/dialogs/components/SettingsAdvanced';@@ -34,9 +33,11 @@ import SettingsExtensions from '-/components/dialogs/components/SettingsExtensioimport SettingsFileTypes from '-/components/dialogs/components/SettingsFileTypes';import SettingsGeneral from '-/components/dialogs/components/SettingsGeneral';import SettingsKeyBindings from '-/components/dialogs/components/SettingsKeyBindings';+import SettingsTemplates from '-/components/dialogs/components/SettingsTemplates';import TsDialogActions from '-/components/dialogs/components/TsDialogActions';import TsDialogTitle from '-/components/dialogs/components/TsDialogTitle';import { openURLExternally } from '-/services/utils-io';+import ArticleIcon from '@mui/icons-material/Article';import Dialog from '@mui/material/Dialog';import DialogContent from '@mui/material/DialogContent';import Paper from '@mui/material/Paper';@@ -47,7 +48,6 @@ import useMediaQuery from '@mui/material/useMediaQuery';import Links from 'assets/links';import { useState } from 'react';import { useTranslation } from 'react-i18next';-import SettingsTemplates from '-/components/dialogs/components/SettingsTemplates';interface Props {open: boolean;@@ -71,10 +71,11 @@ function SettingsDialog(props: Props) {<TsButtononClick={() => openURLExternally(Links.documentationLinks.settings, true)}color="secondary"- style={{- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }>{t('core:help')}</TsButton>diff --git a/src/renderer/components/dialogs/ThirdPartyLibsDialog.tsx b/src/renderer/components/dialogs/ThirdPartyLibsDialog.tsxindex 30399509a..95b8d4a64 100644--- a/src/renderer/components/dialogs/ThirdPartyLibsDialog.tsx+++ b/src/renderer/components/dialogs/ThirdPartyLibsDialog.tsx@@ -40,10 +40,11 @@ function ThirdPartyLibsDialog(props: Props) {const smallScreen = useMediaQuery(theme.breakpoints.down('md'));const okButton = (<TsButton- style={{- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }data-tid="confirmThirdPartyLibsDialog"onClick={onClose}>diff --git a/src/renderer/components/dialogs/components/TsDialogTitle.tsx b/src/renderer/components/dialogs/components/TsDialogTitle.tsxindex 72159e2bc..e274ecba7 100644--- a/src/renderer/components/dialogs/components/TsDialogTitle.tsx+++ b/src/renderer/components/dialogs/components/TsDialogTitle.tsx@@ -53,14 +53,15 @@ function TsDialogTitle(props: TSDialogTitle) {title={t('closeButtonDialog')}aria-label="close"tabIndex={-1}- style={{- // @ts-ignore- WebkitAppRegion: 'no-drag',- position: 'absolute',- right: 15,- top: 15,- zIndex: 1000,- }}+ style={+ {+ position: 'absolute',+ right: 15,+ top: 15,+ zIndex: 1000,+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }data-tid={closeButtonTestId}onClick={onClose}>@@ -73,12 +74,13 @@ function TsDialogTitle(props: TSDialogTitle) {title={t('closeButtonDialog')}aria-label="close"tabIndex={-1}- style={{- float: 'left',- marginLeft: AppConfig.isMacLike && desktopMode ? 40 : 0,- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ float: 'left',+ marginLeft: AppConfig.isMacLike && desktopMode ? 40 : 0,+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }data-tid={closeButtonTestId && closeButtonTestId}onClick={onClose}>diff --git a/src/renderer/perspectives/grid/components/GridSettingsDialog.tsx b/src/renderer/perspectives/grid/components/GridSettingsDialog.tsxindex 8a53d794e..51abcfbc8 100644--- a/src/renderer/perspectives/grid/components/GridSettingsDialog.tsx+++ b/src/renderer/perspectives/grid/components/GridSettingsDialog.tsx@@ -114,10 +114,11 @@ function GridSettingsDialog(props: Props) {const helpButton = (<TsButton- style={{- // @ts-ignore- WebkitAppRegion: 'no-drag',- }}+ style={+ {+ WebkitAppRegion: 'no-drag',+ } as React.CSSProperties & { WebkitAppRegion?: string }+ }data-tid="gridPerspectiveHelp"onClick={openHelpWebPage}>