mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Unify routers and use lazy for app layouts
This commit is contained in:
parent
735f8b06ce
commit
175b2d6c85
8 changed files with 33 additions and 87 deletions
|
@ -15,7 +15,7 @@ import AppDrawer, { isDrawerPath } from './components/drawers/AppDrawer';
|
|||
|
||||
import './AppOverrides.scss';
|
||||
|
||||
const AppLayout = () => {
|
||||
export const Component = () => {
|
||||
const [ isDrawerActive, setIsDrawerActive ] = useState(false);
|
||||
const { user } = useApi();
|
||||
const location = useLocation();
|
||||
|
@ -76,5 +76,3 @@ const AppLayout = () => {
|
|||
</Box>
|
||||
);
|
||||
};
|
||||
|
||||
export default AppLayout;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue