aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/components/BottomMenu.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-08 14:52:01 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-08 14:52:01 -0700
commit176ef4d766fa4bbe230849190b8695380ad10822 (patch)
treebb083a7bd7c3cefb5c09f4ef60593756f1b34cdd /modern/src/common/components/BottomMenu.js
parent4d17b6baf8f3745478eb105c6ee196ebf4ceb7c7 (diff)
downloadtrackermap-web-176ef4d766fa4bbe230849190b8695380ad10822.tar.gz
trackermap-web-176ef4d766fa4bbe230849190b8695380ad10822.tar.bz2
trackermap-web-176ef4d766fa4bbe230849190b8695380ad10822.zip
Organize router
Diffstat (limited to 'modern/src/common/components/BottomMenu.js')
-rw-r--r--modern/src/common/components/BottomMenu.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/common/components/BottomMenu.js b/modern/src/common/components/BottomMenu.js
index 3865de29..048cb0d7 100644
--- a/modern/src/common/components/BottomMenu.js
+++ b/modern/src/common/components/BottomMenu.js
@@ -27,7 +27,7 @@ const BottomMenu = () => {
const [anchorEl, setAnchorEl] = useState(null);
const currentSelection = () => {
- if (location.pathname.startsWith('/user')) {
+ if (location.pathname.startsWith('/settings/user')) {
return 3;
} if (location.pathname.startsWith('/settings')) {
return 2;
@@ -41,7 +41,7 @@ const BottomMenu = () => {
const handleAccount = () => {
setAnchorEl(null);
- history.push(`/user/${userId}`);
+ history.push(`/settings/user/${userId}`);
};
const handleLogout = async () => {