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

Add dashboard branding page

This commit is contained in:
Bill Thornton 2024-11-20 17:56:59 -05:00
parent 441494d5b2
commit ca5f94df63
8 changed files with 259 additions and 10 deletions

View file

@ -37,16 +37,16 @@ export const toAsyncPageRoute = ({
return {
path,
lazy: async () => {
const { default: route } = await importRoute(page ?? path, type);
const {
// If there is a default export, use it as the Component for compatibility
default: Component,
...route
} = await importRoute(page ?? path, type);
// If route is not a RouteObject, use it as the Component
if (!route.Component) {
return {
Component: route
};
}
return route;
return {
Component,
...route
};
}
};
};