mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Migrate dashboard to separate app
This commit is contained in:
parent
0d5b97455a
commit
c0d14715fb
15 changed files with 190 additions and 82 deletions
30
src/apps/dashboard/AppLayout.tsx
Normal file
30
src/apps/dashboard/AppLayout.tsx
Normal file
|
@ -0,0 +1,30 @@
|
|||
import { ThemeProvider } from '@mui/material/styles';
|
||||
import React from 'react';
|
||||
import { Outlet } from 'react-router-dom';
|
||||
|
||||
import AppHeader from 'components/AppHeader';
|
||||
import Backdrop from 'components/Backdrop';
|
||||
import theme from 'themes/theme';
|
||||
|
||||
const AppLayout = () => {
|
||||
return (
|
||||
<ThemeProvider theme={theme}>
|
||||
<Backdrop />
|
||||
|
||||
<div style={{ display: 'none' }}>
|
||||
{/*
|
||||
* TODO: These components are not used, but views interact with them directly so the need to be
|
||||
* present in the dom. We add them in a hidden element to prevent errors.
|
||||
*/}
|
||||
<AppHeader />
|
||||
</div>
|
||||
|
||||
<div className='mainAnimatedPages skinBody' />
|
||||
<div className='skinBody'>
|
||||
<Outlet />
|
||||
</div>
|
||||
</ThemeProvider>
|
||||
);
|
||||
};
|
||||
|
||||
export default AppLayout;
|
Loading…
Add table
Add a link
Reference in a new issue