aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings/components
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/settings/components
parent4d17b6baf8f3745478eb105c6ee196ebf4ceb7c7 (diff)
downloadtrackermap-web-176ef4d766fa4bbe230849190b8695380ad10822.tar.gz
trackermap-web-176ef4d766fa4bbe230849190b8695380ad10822.tar.bz2
trackermap-web-176ef4d766fa4bbe230849190b8695380ad10822.zip
Organize router
Diffstat (limited to 'modern/src/settings/components')
-rw-r--r--modern/src/settings/components/OptionsLayout.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/modern/src/settings/components/OptionsLayout.js b/modern/src/settings/components/OptionsLayout.js
index ea4a4e1f..af104b01 100644
--- a/modern/src/settings/components/OptionsLayout.js
+++ b/modern/src/settings/components/OptionsLayout.js
@@ -80,7 +80,7 @@ const OptionsLayout = ({ children }) => {
const mainRoutes = useMemo(() => [
{ name: t('sharedNotifications'), href: '/settings/notifications', icon: <NotificationsIcon /> },
- { name: t('settingsUser'), href: `/user/${userId}`, icon: <PersonIcon /> },
+ { name: t('settingsUser'), href: `/settings/user/${userId}`, icon: <PersonIcon /> },
{ name: t('sharedGeofences'), href: '/geofences', icon: <CreateIcon /> },
{ name: t('settingsGroups'), href: '/settings/groups', icon: <FolderIcon /> },
{ name: t('sharedDrivers'), href: '/settings/drivers', icon: <PersonIcon /> },
@@ -92,9 +92,9 @@ const OptionsLayout = ({ children }) => {
const adminRoutes = useMemo(() => [
{ subheader: t('userAdmin') },
- { name: t('settingsServer'), href: '/admin/server', icon: <StorageIcon /> },
- { name: t('settingsUsers'), href: '/admin/users', icon: <PeopleIcon /> },
- { name: t('statisticsTitle'), href: '/admin/statistics', icon: <BarChartIcon /> },
+ { name: t('settingsServer'), href: '/settings/server', icon: <StorageIcon /> },
+ { name: t('settingsUsers'), href: '/settings/users', icon: <PeopleIcon /> },
+ { name: t('statisticsTitle'), href: '/reports/statistics', icon: <BarChartIcon /> },
], [t]);
const routes = useMemo(() => (