mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix root path warnings
This commit is contained in:
parent
33102149c2
commit
186dd44da6
3 changed files with 4 additions and 13 deletions
|
@ -13,15 +13,15 @@ import { LEGACY_ADMIN_ROUTES, LEGACY_PUBLIC_ROUTES, LEGACY_USER_ROUTES } from '.
|
||||||
const ExperimentalApp = () => {
|
const ExperimentalApp = () => {
|
||||||
return (
|
return (
|
||||||
<Routes>
|
<Routes>
|
||||||
<Route element={<AppLayout />}>
|
<Route path='/*' element={<AppLayout />}>
|
||||||
{/* User routes */}
|
{/* User routes */}
|
||||||
<Route path='/' element={<ConnectionRequired />}>
|
<Route element={<ConnectionRequired />}>
|
||||||
{ASYNC_USER_ROUTES.map(toAsyncPageRoute)}
|
{ASYNC_USER_ROUTES.map(toAsyncPageRoute)}
|
||||||
{LEGACY_USER_ROUTES.map(toViewManagerPageRoute)}
|
{LEGACY_USER_ROUTES.map(toViewManagerPageRoute)}
|
||||||
</Route>
|
</Route>
|
||||||
|
|
||||||
{/* Admin routes */}
|
{/* Admin routes */}
|
||||||
<Route path='/' element={<ConnectionRequired isAdminRequired />}>
|
<Route element={<ConnectionRequired isAdminRequired />}>
|
||||||
{ASYNC_ADMIN_ROUTES.map(toAsyncPageRoute)}
|
{ASYNC_ADMIN_ROUTES.map(toAsyncPageRoute)}
|
||||||
{LEGACY_ADMIN_ROUTES.map(toViewManagerPageRoute)}
|
{LEGACY_ADMIN_ROUTES.map(toViewManagerPageRoute)}
|
||||||
|
|
||||||
|
@ -31,14 +31,11 @@ const ExperimentalApp = () => {
|
||||||
</Route>
|
</Route>
|
||||||
|
|
||||||
{/* Public routes */}
|
{/* Public routes */}
|
||||||
<Route path='/' element={<ConnectionRequired isUserRequired={false} />}>
|
<Route element={<ConnectionRequired isUserRequired={false} />}>
|
||||||
<Route index element={<Navigate replace to='/home.html' />} />
|
<Route index element={<Navigate replace to='/home.html' />} />
|
||||||
|
|
||||||
{LEGACY_PUBLIC_ROUTES.map(toViewManagerPageRoute)}
|
{LEGACY_PUBLIC_ROUTES.map(toViewManagerPageRoute)}
|
||||||
</Route>
|
</Route>
|
||||||
|
|
||||||
{/* Suppress warnings for unhandled routes */}
|
|
||||||
<Route path='*' element={null} />
|
|
||||||
</Route>
|
</Route>
|
||||||
</Routes>
|
</Routes>
|
||||||
);
|
);
|
||||||
|
|
|
@ -80,9 +80,6 @@ const AppDrawer: FC<ResponsiveDrawerProps> = ({
|
||||||
/>
|
/>
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
{/* Suppress warnings for unhandled routes */}
|
|
||||||
<Route path='*' element={null} />
|
|
||||||
</Routes>
|
</Routes>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -83,9 +83,6 @@ const AppTabs: FC<AppTabsParams> = ({
|
||||||
/>
|
/>
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
{/* Suppress warnings for unhandled routes */}
|
|
||||||
<Route path='*' element={null} />
|
|
||||||
</Routes>
|
</Routes>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue