Refine root sidebar and header controls
This commit is contained in:
@@ -19,7 +19,10 @@ type DashboardLayoutProps = {
|
||||
icon?: LucideIcon;
|
||||
items: RootNavItem[];
|
||||
sidebarIconSrc?: string;
|
||||
sidebarBrandHref?: string;
|
||||
sidebarBrandHoverLabel?: string;
|
||||
sidebarTop?: ReactNode;
|
||||
sidebarFooterItems?: RootNavItem[];
|
||||
sidebarFooter?: ReactNode;
|
||||
headerActions?: ReactNode;
|
||||
children: ReactNode;
|
||||
@@ -31,7 +34,10 @@ export function DashboardLayout({
|
||||
icon: Icon,
|
||||
items,
|
||||
sidebarIconSrc,
|
||||
sidebarBrandHref,
|
||||
sidebarBrandHoverLabel,
|
||||
sidebarTop,
|
||||
sidebarFooterItems,
|
||||
sidebarFooter,
|
||||
headerActions,
|
||||
children,
|
||||
@@ -43,7 +49,10 @@ export function DashboardLayout({
|
||||
<DashboardSidebar
|
||||
items={items}
|
||||
iconSrc={sidebarIconSrc}
|
||||
brandHref={sidebarBrandHref}
|
||||
brandHoverLabel={sidebarBrandHoverLabel}
|
||||
top={sidebarTop}
|
||||
footerItems={sidebarFooterItems}
|
||||
footer={sidebarFooter}
|
||||
/>
|
||||
</aside>
|
||||
@@ -64,7 +73,10 @@ export function DashboardLayout({
|
||||
<DashboardSidebar
|
||||
items={items}
|
||||
iconSrc={sidebarIconSrc}
|
||||
brandHref={sidebarBrandHref}
|
||||
brandHoverLabel={sidebarBrandHoverLabel}
|
||||
top={sidebarTop}
|
||||
footerItems={sidebarFooterItems}
|
||||
footer={sidebarFooter}
|
||||
/>
|
||||
</SheetContent>
|
||||
|
||||
Reference in New Issue
Block a user