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.root.match} element={<Navigate to={AppRoutes.library.path} replace />} />
|
||||||
<Route path={AppRoutes.matchAll.match} element={<Navigate to={AppRoutes.root.path} replace />} />
|
<Route path={AppRoutes.matchAll.match} element={<Navigate to={AppRoutes.root.path} replace />} />
|
||||||
{isMobileWidth && <Route path={AppRoutes.more.match} element={<More />} />}
|
{isMobileWidth && <Route path={AppRoutes.more.match} element={<More />} />}
|
||||||
|
<Route path={AppRoutes.about.match} element={<About />} />
|
||||||
<Route path={AppRoutes.settings.match}>
|
<Route path={AppRoutes.settings.match}>
|
||||||
<Route index element={<Settings />} />
|
<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.categories.match} element={<CategorySettings />} />
|
||||||
<Route path={AppRoutes.settings.childRoutes.reader.match} element={<GlobalReaderSettings />} />
|
<Route path={AppRoutes.settings.childRoutes.reader.match} element={<GlobalReaderSettings />} />
|
||||||
<Route path={AppRoutes.settings.childRoutes.library.match}>
|
<Route path={AppRoutes.settings.childRoutes.library.match}>
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ export const ServerUpdateChecker = () => {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const isAboutPage = window.location.pathname === AppRoutes.settings.childRoutes.about.path;
|
const isAboutPage = window.location.pathname === AppRoutes.about.path;
|
||||||
if (isAboutPage) {
|
if (isAboutPage) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,14 +25,14 @@ export const AppRoutes = {
|
|||||||
matchAll: {
|
matchAll: {
|
||||||
match: '*',
|
match: '*',
|
||||||
},
|
},
|
||||||
|
about: {
|
||||||
|
match: 'about',
|
||||||
|
path: '/about',
|
||||||
|
},
|
||||||
settings: {
|
settings: {
|
||||||
path: '/settings',
|
path: '/settings',
|
||||||
match: 'settings',
|
match: 'settings',
|
||||||
childRoutes: {
|
childRoutes: {
|
||||||
about: {
|
|
||||||
match: 'about',
|
|
||||||
path: '/settings/about',
|
|
||||||
},
|
|
||||||
categories: {
|
categories: {
|
||||||
match: 'categories',
|
match: 'categories',
|
||||||
path: '/settings/categories',
|
path: '/settings/categories',
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ const NAVIGATION_BAR_DESKTOP_ITEMS = [
|
|||||||
moreGroup: NavBarItemMoreGroup.SETTING_INFO,
|
moreGroup: NavBarItemMoreGroup.SETTING_INFO,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: AppRoutes.settings.childRoutes.about.path,
|
path: AppRoutes.about.path,
|
||||||
title: 'settings.about.title',
|
title: 'settings.about.title',
|
||||||
SelectedIconComponent: InfoIcon,
|
SelectedIconComponent: InfoIcon,
|
||||||
IconComponent: InfoIcon,
|
IconComponent: InfoIcon,
|
||||||
|
|||||||
Reference in New Issue
Block a user