aboutsummaryrefslogtreecommitdiff
path: root/modern/src/components/BottomMenu.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-01 20:30:08 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-01 20:30:08 -0700
commit0d6acd661502b5f155f2c79f32fee17b59cb6cdd (patch)
tree7a06f58972cba33daa14513f36fc1812bc55858e /modern/src/components/BottomMenu.js
parentd3bd766cbc81f51c9b13b82d0ca92ae819561ea8 (diff)
downloadtrackermap-web-0d6acd661502b5f155f2c79f32fee17b59cb6cdd.tar.gz
trackermap-web-0d6acd661502b5f155f2c79f32fee17b59cb6cdd.tar.bz2
trackermap-web-0d6acd661502b5f155f2c79f32fee17b59cb6cdd.zip
Fix style issues
Diffstat (limited to 'modern/src/components/BottomMenu.js')
-rw-r--r--modern/src/components/BottomMenu.js11
1 files changed, 5 insertions, 6 deletions
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) {