1
0
Fork 0
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:
Grady Hallenbeck 2023-10-06 20:12:32 -07:00
parent cd11e6e36f
commit 68b21bbb04
8 changed files with 23 additions and 120 deletions

View file

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