mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Restructure legacy route code
This commit is contained in:
parent
2094a7a8c2
commit
c4a58c7133
3 changed files with 2 additions and 2 deletions
|
@ -1,23 +0,0 @@
|
|||
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';
|
Loading…
Add table
Add a link
Reference in a new issue