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:
parent
441494d5b2
commit
ca5f94df63
8 changed files with 259 additions and 10 deletions
|
@ -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
|
||||
};
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue