Skip to content

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

fixing lint issues

Ilian Sapundshiev4bc9229e1557
diff --git a/app/components/LocationManager.tsx b/app/components/LocationManager.tsx
index ef103bf9e..7ba1eb178 100644
--- a/app/components/LocationManager.tsx
+++ b/app/components/LocationManager.tsx
@@ -714,9 +714,9 @@ class LocationManager extends React.Component<Props, State> {
};
render() {
- const classes = this.props.classes;
+ const { classes } = this.props;
return (
- <div className={classes.panel}>
+ <div className={classes.panel} style={this.props.style}>
<CustomLogo />
<div className={classes.toolbar}>
<Typography
diff --git a/app/components/VerticalNavigation.tsx b/app/components/VerticalNavigation.tsx
index 1f63642f5..03bb39b35 100644
--- a/app/components/VerticalNavigation.tsx
+++ b/app/components/VerticalNavigation.tsx
@@ -35,7 +35,6 @@ import SplitPane from 'react-split-pane';
import LogoIcon from '../assets/images/icon100x100.svg';
import TagLibrary from '../components/TagLibrary';
import Search from '../components/Search';
-import PerspectiveManager from '../components/PerspectiveManager';
import LocationManager from '../components/LocationManager';
import HelpFeedbackPanel from '../components/HelpFeedbackPanel';
import i18n from '../services/i18n';
@@ -45,10 +44,10 @@ import {
getDirectoryPath,
isSettingsDialogOpened,
isLocationManagerPanelOpened,
- isTagLibraryPanelOpened,
- isSearchPanelOpened,
- isPerspectivesPanelOpened,
- isHelpFeedbackPanelOpened,
+ isTagLibraryPanelOpened as isTagLibraryOpened,
+ isSearchPanelOpened as isSearchOpened,
+ isPerspectivesPanelOpened as isPerspectivesOpened,
+ isHelpFeedbackPanelOpened as isHelpFeedbackOpened,
isReadOnlyMode
} from '../reducers/app';
import { actions as SettingsActions, isFirstRun } from '../reducers/settings';
@@ -138,7 +137,9 @@ class VerticalNavigation extends React.Component<Props, State> {
};
toggleProTeaser = () => {
- this.setState({ isProTeaserVisible: !this.state.isProTeaserVisible });
+ this.setState(prevState => ({
+ isProTeaserVisible: !prevState.isProTeaserVisible
+ }));
};
render() {
@@ -147,7 +148,6 @@ class VerticalNavigation extends React.Component<Props, State> {
isTagLibraryPanelOpened,
isSearchPanelOpened,
isSettingsDialogOpened,
- isPerspectivesPanelOpened,
isHelpFeedbackPanelOpened,
isReadOnlyMode,
toggleCreateFileDialog,
@@ -401,10 +401,10 @@ function mapStateToProps(state) {
isFirstRun: isFirstRun(state),
isSettingsDialogOpened: isSettingsDialogOpened(state),
isLocationManagerPanelOpened: isLocationManagerPanelOpened(state),
- isTagLibraryPanelOpened: isTagLibraryPanelOpened(state),
- isSearchPanelOpened: isSearchPanelOpened(state),
- isPerspectivesPanelOpened: isPerspectivesPanelOpened(state),
- isHelpFeedbackPanelOpened: isHelpFeedbackPanelOpened(state),
+ isTagLibraryPanelOpened: isTagLibraryOpened(state),
+ isSearchPanelOpened: isSearchOpened(state),
+ isPerspectivesPanelOpened: isPerspectivesOpened(state),
+ isHelpFeedbackPanelOpened: isHelpFeedbackOpened(state),
isReadOnlyMode: isReadOnlyMode(state),
directoryPath: getDirectoryPath(state)
};
diff --git a/app/containers/MainPage.tsx b/app/containers/MainPage.tsx
index cadd469e8..832712eb3 100644
--- a/app/containers/MainPage.tsx
+++ b/app/containers/MainPage.tsx
@@ -593,7 +593,6 @@ class MainPage extends Component<Props, State> {
render() {
const {
- classes,
theme,
isCreateFileDialogOpened,
isSettingsDialogOpened,
diff --git a/app/main.dev.ts b/app/main.dev.ts
index e6f78cc74..f1a2caca5 100644
--- a/app/main.dev.ts
+++ b/app/main.dev.ts
@@ -166,6 +166,7 @@ app.on('ready', async () => {
});
mainWindow.loadURL(mainHTML + startupParameter);
+ mainWindow.menubarVisible = false;
mainWindow.autoHideMenuBar = true;
mainWindow.webContents.on('did-finish-load', () => {