Skip to content

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

fix: mui some warnings

Ilian Sapundshiev40d27f73121d
diff --git a/app/components/dialogs/CreateLocationDialog.tsx b/app/components/dialogs/CreateLocationDialog.tsx
index fccbd3403..bcd90c45f 100644
--- a/app/components/dialogs/CreateLocationDialog.tsx
+++ b/app/components/dialogs/CreateLocationDialog.tsx
@@ -100,7 +100,7 @@ class CreateLocationDialog extends React.Component<Props, State> {
perspective: '',
isDefault: false,
isReadOnly: false,
- watchForChanges: Pro,
+ watchForChanges: false,
persistIndex: false,
fullTextIndex: false,
storeName: '',
diff --git a/app/containers/MainPage.tsx b/app/containers/MainPage.tsx
index da5cbec1f..814fccf5d 100644
--- a/app/containers/MainPage.tsx
+++ b/app/containers/MainPage.tsx
@@ -719,7 +719,7 @@ class MainPage extends Component<Props, State> {
message="Loading or generating thumbnails..."
action={[
<IconButton
- key="close"
+ key="closeButton"
aria-label={i18n.t('core:closeButton')}
color="inherit"
onClick={() => this.props.setGeneratingThumbnails(false)}
@@ -735,6 +735,7 @@ class MainPage extends Component<Props, State> {
message="Indexing"
action={[
<Button
+ key="cancelIndexButton"
color="secondary"
size="small"
onClick={this.props.cancelDirectoryIndexing}
@@ -749,10 +750,16 @@ class MainPage extends Component<Props, State> {
autoHideDuration={undefined}
message={'Version ' + this.props.lastPublishedVersion + ' available.'}
action={[
- <Button color="secondary" size="small" onClick={this.skipRelease}>
+ <Button
+ key="laterButton"
+ color="secondary"
+ size="small"
+ onClick={this.skipRelease}
+ >
{i18n.t('core:later')}
</Button>,
<Button
+ key="changelogButton"
color="secondary"
size="small"
onClick={this.openChangelogPage}
@@ -760,6 +767,7 @@ class MainPage extends Component<Props, State> {
{i18n.t('core:releaseNotes')}
</Button>,
<Button
+ key="latestVersionButton"
color="primary"
size="small"
onClick={this.getLatestVersion}