1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Migrate all user routes to react router

This commit is contained in:
Bill Thornton 2022-10-24 10:57:25 -04:00
parent c5072f77f5
commit 7c96c386c2
4 changed files with 122 additions and 102 deletions

View file

@ -0,0 +1,23 @@
import React from 'react';
import { Route } from 'react-router-dom';
import ViewManagerPage, { ViewManagerPageProps } from '../../components/viewManager/ViewManagerPage';
export interface LegacyRoute {
path: string,
pageProps: ViewManagerPageProps
}
export function toViewManagerPageRoute(route: LegacyRoute) {
return (
<Route
key={route.path}
path={route.path}
element={
<ViewManagerPage {...route.pageProps} />
}
/>
);
}
export * from './userRoutes';