Move "About" outside "Settings" in regard to routing
Is already not part of the settings anymore, however, the route was never updated
This commit is contained in:
@@ -88,7 +88,7 @@ export const ServerUpdateChecker = () => {
|
||||
return null;
|
||||
}
|
||||
|
||||
const isAboutPage = window.location.pathname === AppRoutes.settings.childRoutes.about.path;
|
||||
const isAboutPage = window.location.pathname === AppRoutes.about.path;
|
||||
if (isAboutPage) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -25,14 +25,14 @@ export const AppRoutes = {
|
||||
matchAll: {
|
||||
match: '*',
|
||||
},
|
||||
about: {
|
||||
match: 'about',
|
||||
path: '/about',
|
||||
},
|
||||
settings: {
|
||||
path: '/settings',
|
||||
match: 'settings',
|
||||
childRoutes: {
|
||||
about: {
|
||||
match: 'about',
|
||||
path: '/settings/about',
|
||||
},
|
||||
categories: {
|
||||
match: 'categories',
|
||||
path: '/settings/categories',
|
||||
|
||||
@@ -77,7 +77,7 @@ const NAVIGATION_BAR_DESKTOP_ITEMS = [
|
||||
moreGroup: NavBarItemMoreGroup.SETTING_INFO,
|
||||
},
|
||||
{
|
||||
path: AppRoutes.settings.childRoutes.about.path,
|
||||
path: AppRoutes.about.path,
|
||||
title: 'settings.about.title',
|
||||
SelectedIconComponent: InfoIcon,
|
||||
IconComponent: InfoIcon,
|
||||
|
||||
Reference in New Issue
Block a user