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:
parent
675f9625f2
commit
ff885b9b21
5 changed files with 76 additions and 59 deletions
|
@ -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}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue