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 type { Metadata } from "next";
|
||||||
import "./globals.css";
|
import "./globals.css";
|
||||||
import { ThemeProvider } from "@/components/ThemeProvider";
|
import { ThemeProvider } from "@/components/ThemeProvider";
|
||||||
|
import { ErrorBoundary } from "@/components/ErrorBoundary";
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "Candle Annotator",
|
title: "Candle Annotator",
|
||||||
|
|
@ -20,7 +21,9 @@ export default function RootLayout({
|
||||||
defaultTheme="light"
|
defaultTheme="light"
|
||||||
enableSystem={false}
|
enableSystem={false}
|
||||||
>
|
>
|
||||||
|
<ErrorBoundary>
|
||||||
{children}
|
{children}
|
||||||
|
</ErrorBoundary>
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue