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:
Consultoria AS
2026-02-17 02:42:25 +00:00
parent cdb6f0c94e
commit 2bbab12627
6 changed files with 166 additions and 12 deletions

View File

@@ -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>
</>
);
}