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

Preparing for experimental app routes

This commit is contained in:
grafixeyehero 2023-04-13 00:33:32 +03:00 committed by Bill Thornton
parent 4ea9f0147a
commit 12c1ae3590
10 changed files with 50 additions and 64 deletions

View file

@ -1,22 +0,0 @@
import React from 'react';
import { Route } from 'react-router-dom';
import AsyncPage from '../../components/AsyncPage';
export interface AsyncRoute {
/** The URL path for this route. */
path: string
/** The relative path to the page component in the routes directory. */
page: string
}
export const toAsyncPageRoute = (route: AsyncRoute) => (
<Route
key={route.path}
path={route.path}
element={<AsyncPage page={route.page} />}
/>
);
export * from './admin';
export * from './user';