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