From 3c3d86855c649c85f49c47f688039057ffec4a10 Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Mon, 29 Dec 2025 08:56:45 +0000 Subject: refactor: add suspense boundary in sidebar layout --- apps/web/components/dashboard/ErrorFallback.tsx | 43 +++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 apps/web/components/dashboard/ErrorFallback.tsx (limited to 'apps/web/components/dashboard/ErrorFallback.tsx') diff --git a/apps/web/components/dashboard/ErrorFallback.tsx b/apps/web/components/dashboard/ErrorFallback.tsx new file mode 100644 index 00000000..7e4ce0d6 --- /dev/null +++ b/apps/web/components/dashboard/ErrorFallback.tsx @@ -0,0 +1,43 @@ +"use client"; + +import Link from "next/link"; +import { Button } from "@/components/ui/button"; +import { AlertTriangle, Home, RefreshCw } from "lucide-react"; + +export default function ErrorFallback() { + return ( +
+
+
+
+ +
+
+ +
+

+ Oops! Something went wrong +

+

+ We're sorry, but an unexpected error occurred. Please try again + or contact support if the issue persists. +

+
+ +
+ + + + + +
+
+
+ ); +} -- cgit v1.2.3-70-g09d2