Add favicon support and loading state to authentication components

This commit is contained in:
Gabriel20xx committed 2026-08-10 10:42:40 +02:00
1 parent d0b18a4902
commit 81077527ac
4 files changed
+25 -21

No files matched your search

@@ -11,6 +11,7 @@
children,
class: className = '',
currentPath = '',
faviconHref = '/favicon.svg',
headerActions,
navItems = [],
onAbout,
@@ -29,6 +30,7 @@
children?: Snippet;
class?: string;
currentPath?: string;
faviconHref?: string;
headerActions?: Snippet;
navItems?: NavItem[];
onAbout?: () => void | Promise<void>;
@@ -51,10 +53,11 @@
<div class={`sc-root sc-app-shell ${className}`} data-theme={theme === 'system' ? undefined : theme}>
<Header
aboutHref={aboutHref ?? navItems.find((item) => item.label.toLowerCase() === 'about')?.href}
aboutHref={aboutHref ?? navItems.find((item) => item.label.toLowerCase() === 'about')?.href ?? '/about'}
{brand}
{brandHref}
{currentPath}
{faviconHref}
actions={headerActions}
{navItems}
{onAbout}