mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
chore: remove unused routing components
This commit is contained in:
parent
cd11e6e36f
commit
68b21bbb04
8 changed files with 23 additions and 120 deletions
|
@ -1,5 +1,4 @@
|
|||
import React from 'react';
|
||||
import { Route } from 'react-router-dom';
|
||||
|
||||
import ViewManagerPage, { ViewManagerPageProps } from '../viewManager/ViewManagerPage';
|
||||
|
||||
|
@ -9,18 +8,6 @@ export interface LegacyRoute {
|
|||
}
|
||||
|
||||
export function toViewManagerPageRoute(route: LegacyRoute) {
|
||||
return (
|
||||
<Route
|
||||
key={route.path}
|
||||
path={route.path}
|
||||
element={
|
||||
<ViewManagerPage {...route.pageProps} />
|
||||
}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
export function toViewManagerPageRouteConfig(route: LegacyRoute) {
|
||||
return {
|
||||
path: route.path,
|
||||
element: <ViewManagerPage {...route.pageProps} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue