code-review-fix task 10.2: wrap children with ErrorBoundary in layout.tsx
This commit is contained in:
parent
4bd9d6f9da
commit
c978d5ad4a
1 changed files with 4 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue