diff --git a/app/global-error.tsx b/app/global-error.tsx new file mode 100644 index 0000000..57696f1 --- /dev/null +++ b/app/global-error.tsx @@ -0,0 +1,21 @@ +"use client"; + +export default function GlobalError({ + reset, +}: { + error: Error & { digest?: string }; + reset: () => void; +}) { + return ( + + +
+

Something went wrong

+ +
+ + + ); +} diff --git a/app/layout.tsx b/app/layout.tsx index 51d217b..354b73d 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,7 +1,7 @@ import type React from "react"; import type { Metadata } from "next"; import "./globals.css"; -import { Toaster } from "@/components/ui/toaster"; +import { LazyToaster } from "@/components/LazyToaster"; import { SimpleAnalytics } from "@/components/SimpleAnalytics"; import SWRProvider from "@/components/SWRProvider"; import { Sidebar } from "@/components/HomePageClient"; @@ -64,7 +64,7 @@ export default function RootLayout({
-
+
{children}
@@ -81,13 +81,17 @@ export default function RootLayout({

- 🏗️🇨🇦 A Build Canada project. + 🏗️🇨🇦 A{" "} + + Build Canada + {" "} + project.

- + {/*