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

Backport pull request #5589 from jellyfin-web/release-10.9.z

Add support for user themes for mui components

Original-merge: 61976b8101

Merged-by: thornbill <thornbill@users.noreply.github.com>

Backported-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
thornbill 2024-05-26 10:27:08 -04:00 committed by Joshua M. Boniface
parent 669784bde5
commit 1929ba8eb2
16 changed files with 298 additions and 62 deletions

View file

@ -12,6 +12,7 @@ import AppHeader from 'components/AppHeader';
import Backdrop from 'components/Backdrop';
import { useLegacyRouterSync } from 'hooks/useLegacyRouterSync';
import { DASHBOARD_APP_ROUTES } from 'apps/dashboard/routes/routes';
import UserThemeProvider from 'themes/UserThemeProvider';
const router = createHashRouter([
{
@ -35,11 +36,11 @@ export default function RootAppRouter({ history }: Readonly<{ history: History}>
*/
function RootAppLayout() {
return (
<>
<UserThemeProvider>
<Backdrop />
<AppHeader isHidden />
<Outlet />
</>
</UserThemeProvider>
);
}