feat: add error boundary

This commit is contained in:
Dan Ditomaso
2025-03-03 20:32:47 -05:00
parent f9066eced0
commit d28b4ce6d9
18 changed files with 342 additions and 194 deletions
+4 -2
View File
@@ -1,4 +1,4 @@
import { H4 } from "@components/UI/Typography/H4.tsx";
import { Heading } from "../Typography/Heading";
export interface SidebarSectionProps {
label: string;
@@ -11,7 +11,9 @@ export const SidebarSection = ({
children,
}: SidebarSectionProps) => (
<div className="px-4 py-2">
<H4 className="mb-3 ml-2">{title}</H4>
<Heading as="h4" className="mb-3 ml-2">
{title}
</Heading>
<div className="space-y-1">{children}</div>
</div>
);