fix: resolve build errors and add dialog component
- Add Dialog UI component (shadcn/radix-ui) - Fix html2pdf.js type annotations with const assertions - Add @radix-ui/react-dialog dependency Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { Sidebar } from './sidebar';
|
||||
import { Header } from './header';
|
||||
|
||||
interface DashboardShellProps {
|
||||
@@ -8,13 +7,12 @@ interface DashboardShellProps {
|
||||
}
|
||||
|
||||
export function DashboardShell({ children, title, headerContent }: DashboardShellProps) {
|
||||
// Navigation is handled by the parent layout.tsx which respects theme settings
|
||||
// DashboardShell only provides Header and content wrapper
|
||||
return (
|
||||
<div className="min-h-screen bg-background">
|
||||
<Sidebar />
|
||||
<div className="pl-64">
|
||||
<Header title={title}>{headerContent}</Header>
|
||||
<main className="p-6">{children}</main>
|
||||
</div>
|
||||
</div>
|
||||
<>
|
||||
<Header title={title}>{headerContent}</Header>
|
||||
<main className="p-6">{children}</main>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user