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:
schroda
2025-04-05 15:34:58 +02:00
parent 8cbc8c5099
commit 0b97e8bb8d
4 changed files with 7 additions and 7 deletions

View File

@@ -130,9 +130,9 @@ const MainApp = () => {
<Route path={AppRoutes.root.match} element={<Navigate to={AppRoutes.library.path} replace />} />
<Route path={AppRoutes.matchAll.match} element={<Navigate to={AppRoutes.root.path} replace />} />
{isMobileWidth && <Route path={AppRoutes.more.match} element={<More />} />}
<Route path={AppRoutes.about.match} element={<About />} />
<Route path={AppRoutes.settings.match}>
<Route index element={<Settings />} />
<Route path={AppRoutes.settings.childRoutes.about.match} element={<About />} />
<Route path={AppRoutes.settings.childRoutes.categories.match} element={<CategorySettings />} />
<Route path={AppRoutes.settings.childRoutes.reader.match} element={<GlobalReaderSettings />} />
<Route path={AppRoutes.settings.childRoutes.library.match}>

View File

@@ -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;
}

View File

@@ -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',

View File

@@ -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,