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

feat: migrate legacy app to use react data router

This commit is contained in:
Grady Hallenbeck 2023-10-06 20:29:54 -07:00
parent 675f9625f2
commit ff885b9b21
5 changed files with 76 additions and 59 deletions

View file

@ -14,7 +14,7 @@ import theme from 'themes/theme';
import { HistoryRouter } from 'components/router/HistoryRouter';
const DashboardApp = loadable(() => import('./apps/dashboard/App'));
const StableApp = loadable(() => import('./apps/stable/App'));
const StableAppRouter = loadable(() => import('./apps/stable/AppRouter'));
const RootAppRouter = loadable(() => import('./RootAppRouter'));
const queryClient = new QueryClient();
@ -33,9 +33,7 @@ const RootAppLayout = ({ history }: { history: History }) => {
{isExperimentalLayout ?
<RootAppRouter history={history} /> :
<HistoryRouter history={history}>
<StableApp />
</HistoryRouter>
<StableAppRouter history={history} />
}
<HistoryRouter history={history}>