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

Add experimental app routes

This commit is contained in:
grafixeyehero 2023-04-13 00:47:34 +03:00 committed by Bill Thornton
parent 12c1ae3590
commit fc0f0694db
8 changed files with 440 additions and 2 deletions

View file

@ -3,13 +3,14 @@ import React from 'react';
import { HistoryRouter } from './components/HistoryRouter';
import { ApiProvider } from './hooks/useApi';
import { AppRoutes } from './routes';
import { AppRoutes, ExperimentalAppRoutes } from './routes';
const App = ({ history }: { history: History }) => {
const layoutMode = localStorage.getItem('layout');
return (
<ApiProvider>
<HistoryRouter history={history}>
<AppRoutes />
{layoutMode === 'experimental' ? <ExperimentalAppRoutes /> : <AppRoutes /> }
</HistoryRouter>
</ApiProvider>
);