aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings
diff options
context:
space:
mode:
authorDesmond Kyeremeh <elDekyfin@gmail.com>2021-07-12 03:05:49 +0000
committerDesmond Kyeremeh <elDekyfin@gmail.com>2021-07-12 03:05:49 +0000
commitaba0f502a1a5e9a9467a06e1417ebb72c1e2ced2 (patch)
tree87c223bb2f73f0d96ddb6ce495499362d7434411 /modern/src/settings
parent004367fc1fd389b169821eb2d73266490f409999 (diff)
downloadtrackermap-web-aba0f502a1a5e9a9467a06e1417ebb72c1e2ced2.tar.gz
trackermap-web-aba0f502a1a5e9a9467a06e1417ebb72c1e2ced2.tar.bz2
trackermap-web-aba0f502a1a5e9a9467a06e1417ebb72c1e2ced2.zip
Updated eslint
Diffstat (limited to 'modern/src/settings')
-rw-r--r--modern/src/settings/OptionsLayout/index.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/modern/src/settings/OptionsLayout/index.js b/modern/src/settings/OptionsLayout/index.js
index 61a94cff..1184465b 100644
--- a/modern/src/settings/OptionsLayout/index.js
+++ b/modern/src/settings/OptionsLayout/index.js
@@ -6,7 +6,7 @@ import {
Drawer,
makeStyles,
IconButton,
- Hidden
+ Hidden,
} from '@material-ui/core';
import ArrowBackIcon from '@material-ui/icons/ArrowBack';
@@ -16,38 +16,38 @@ import NavBar from '../../components/NavBar';
import t from '../../common/localization';
import useRoutes from './useRoutes';
-const useStyles = makeStyles(theme => ({
+const useStyles = makeStyles((theme) => ({
root: {
display: 'flex',
- height: '100%'
+ height: '100%',
},
drawerContainer: {
- width: theme.dimensions.drawerWidthDesktop
+ width: theme.dimensions.drawerWidthDesktop,
},
drawer: {
width: theme.dimensions.drawerWidthDesktop,
[theme.breakpoints.down('md')]: {
- width: theme.dimensions.drawerWidthTablet
- }
+ width: theme.dimensions.drawerWidthTablet,
+ },
},
content: {
flex: 1,
padding: theme.spacing(5, 3, 3, 3),
[theme.breakpoints.down('md')]: {
- paddingTop: theme.spacing(10)
- }
+ paddingTop: theme.spacing(10),
+ },
},
drawerHeader: {
...theme.mixins.toolbar,
display: 'flex',
alignItems: 'center',
- padding: theme.spacing(0, 1)
+ padding: theme.spacing(0, 1),
},
toolbar: {
[theme.breakpoints.down('md')]: {
- ...theme.mixins.toolbar
- }
- }
+ ...theme.mixins.toolbar,
+ },
+ },
}));
const OptionsLayout = ({ children }) => {
@@ -59,7 +59,7 @@ const OptionsLayout = ({ children }) => {
useEffect(() => {
const activeRoute = routes.find(
- route => route.href && location.pathname.match(route.match || route.href)
+ (route) => route.href && location.pathname.match(route.match || route.href),
);
setOptionTitle(activeRoute?.name);
}, [location, routes]);