TagSpaces is an offline, open source, document manager with tagging support
chore: code cleanup
Ilian Sapundshiev351f17df40df
diff --git a/app/components/MobileNavigation.tsx b/app/components/MobileNavigation.tsxindex 99275fe61..45461356c 100644--- a/app/components/MobileNavigation.tsx+++ b/app/components/MobileNavigation.tsx@@ -21,6 +21,7 @@ import { v1 as uuidv1 } from 'uuid';import { connect } from 'react-redux';import { bindActionCreators } from 'redux';import classNames from 'classnames';+import Box from '@mui/material/Box';import Tooltip from '-/components/Tooltip';import ToggleButton from '@mui/material/ToggleButton';import Button from '@mui/material/Button';@@ -150,17 +151,16 @@ function MobileNavigation(props: Props) {user} = props;return (- <div- className={classes.root}+ <Boxstyle={{- backgroundColor: theme.palette.background.paper,+ // backgroundColor: theme.palette.background.default,height: '100%',overflow: 'hidden',width: width || 320,maxWidth: width || 320}}>- <div+ <Boxstyle={{overflow: 'hidden',height: showProTeaser ? 'calc(100% - 220px)' : 'calc(100% - 55px)'@@ -168,9 +168,7 @@ function MobileNavigation(props: Props) {><CustomLogo /><ButtonGroup- // variant="text"color="primary"- aria-label="text primary button group"style={{textAlign: 'center',display: 'block',@@ -236,8 +234,8 @@ function MobileNavigation(props: Props) {toggleProTeaser={toggleProTeaser}/>)}- </div>- <div+ </Box>+ <Boxstyle={{textAlign: 'center'}}@@ -423,8 +421,8 @@ function MobileNavigation(props: Props) {key={uuidv1()} // TODO rethink to remove this/>)}- </div>- </div>+ </Box>+ </Box>);}@@ -469,4 +467,4 @@ function mapActionCreatorsToProps(dispatch) {export default connect(mapStateToProps,mapActionCreatorsToProps-)(withStyles(styles, { withTheme: true })(MobileNavigation));+)(withStyles(styles)(MobileNavigation));diff --git a/app/containers/MainPage.tsx b/app/containers/MainPage.tsxindex a928a1c7e..20ab277aa 100644--- a/app/containers/MainPage.tsx+++ b/app/containers/MainPage.tsx@@ -321,12 +321,7 @@ function OpenLinkDialogAsync(props) {}function MainPage(props: Props) {- // const [percent, setPercent] = React.useState<number | undefined>(undefined);const percent = useRef<number | undefined>(undefined);- // const selectedDirectoryPath = useRef<string>('');- /*const setSelectedDirectoryPath = (path: string) => {- selectedDirectoryPath.current = path;- };*/const [ignored, forceUpdate] = useReducer(x => x + 1, 0);const width =@@ -346,7 +341,6 @@ function MainPage(props: Props) {const [moveCopyDialogOpened, setMoveCopyDialogOpened] = useState<any>(undefined);- // const [rightPanelWidth, setRightPanelWidth] = useState<number>(0);useEffect(() => {if (!AppConfig.isCordova) {@@ -758,11 +752,10 @@ function MainPage(props: Props) {<PageNotification /><divstyle={{- backgroundColor: theme.palette.background.default,+ // backgroundColor: theme.palette.background.default,height: '100%'}}>- {/* --default-splitter-line-hover-color: green !important; */}<style>{`.default-splitter {