From 0d6acd661502b5f155f2c79f32fee17b59cb6cdd Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 1 May 2022 20:30:08 -0700 Subject: Fix style issues --- modern/src/App.js | 2 +- modern/src/StartPage.js | 2 +- modern/src/components/BottomMenu.js | 11 +++++------ 3 files changed, 7 insertions(+), 8 deletions(-) (limited to 'modern/src') diff --git a/modern/src/App.js b/modern/src/App.js index a4b66ea1..5455058a 100644 --- a/modern/src/App.js +++ b/modern/src/App.js @@ -50,7 +50,7 @@ import EventPage from './EventPage'; import PreferencesPage from './settings/PreferencesPage'; import BottomMenu from './components/BottomMenu'; -const useStyles = makeStyles((theme) => ({ +const useStyles = makeStyles(() => ({ root: { display: 'flex', flexDirection: 'column', diff --git a/modern/src/StartPage.js b/modern/src/StartPage.js index 1e672c2b..fcfaccca 100644 --- a/modern/src/StartPage.js +++ b/modern/src/StartPage.js @@ -59,7 +59,7 @@ const StartPage = ({ children }) => { - )} + )}
diff --git a/modern/src/components/BottomMenu.js b/modern/src/components/BottomMenu.js index 672c969a..087d241d 100644 --- a/modern/src/components/BottomMenu.js +++ b/modern/src/components/BottomMenu.js @@ -26,16 +26,15 @@ const BottomMenu = () => { const currentSelection = () => { if (location.pathname.startsWith('/user')) { return 3; - } else if (location.pathname.startsWith('/settings')) { + } if (location.pathname.startsWith('/settings')) { return 2; - } else if (location.pathname.startsWith('/reports')) { + } if (location.pathname.startsWith('/reports')) { return 1; - } else if (location.pathname === '/') { + } if (location.pathname === '/') { return 0; - } else { - return null; } - } + return null; + }; const handleSelection = (event, value) => { switch (value) { -- cgit v1.2.3