diff options
author | Desmond Kyeremeh <elDekyfin@gmail.com> | 2021-07-12 03:30:34 +0000 |
---|---|---|
committer | Desmond Kyeremeh <elDekyfin@gmail.com> | 2021-07-12 03:30:34 +0000 |
commit | f60983a4131862db0125844a651b994d2212022d (patch) | |
tree | c44ef60f3c37dbfc286ff3f4111f10a08b7d7b4f /modern/src/MainToolbar.js | |
parent | a7e1b5f5fd772d37f9777fec097f28411f13562f (diff) | |
download | trackermap-web-f60983a4131862db0125844a651b994d2212022d.tar.gz trackermap-web-f60983a4131862db0125844a651b994d2212022d.tar.bz2 trackermap-web-f60983a4131862db0125844a651b994d2212022d.zip |
Restored styling
Diffstat (limited to 'modern/src/MainToolbar.js')
-rw-r--r-- | modern/src/MainToolbar.js | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/modern/src/MainToolbar.js b/modern/src/MainToolbar.js index 8b6c22cb..59c2eca8 100644 --- a/modern/src/MainToolbar.js +++ b/modern/src/MainToolbar.js @@ -44,12 +44,8 @@ const MainToolbar = () => { const history = useHistory(); const userId = useSelector(selectors.getUserId); - const openDrawer = () => { - setDrawer(true); - }; - const closeDrawer = () => { - setDrawer(false); - }; + const openDrawer = () => { setDrawer(true); }; + const closeDrawer = () => { setDrawer(false); }; const handleLogout = async () => { const response = await fetch('/api/session', { method: 'DELETE' }); @@ -73,9 +69,7 @@ const MainToolbar = () => { <Typography variant="h6" color="inherit" className={classes.flex}> Traccar </Typography> - <Button color="inherit" onClick={handleLogout}> - {t('loginLogout')} - </Button> + <Button color="inherit" onClick={handleLogout}>{t('loginLogout')}</Button> </Toolbar> </AppBar> <Drawer open={drawer} onClose={closeDrawer}> |