code-review-fix task 10.2: wrap children with ErrorBoundary in layout.tsx

This commit is contained in:
Marko Djordjevic 2026-02-18 20:27:29 +01:00
parent 4bd9d6f9da
commit c978d5ad4a

View file

@ -1,6 +1,7 @@
import type { Metadata } from "next";
import "./globals.css";
import { ThemeProvider } from "@/components/ThemeProvider";
import { ErrorBoundary } from "@/components/ErrorBoundary";
export const metadata: Metadata = {
title: "Candle Annotator",
@ -20,7 +21,9 @@ export default function RootLayout({
defaultTheme="light"
enableSystem={false}
>
{children}
<ErrorBoundary>
{children}
</ErrorBoundary>
</ThemeProvider>
</body>
</html>