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/app/dashboard/error.tsx | 43 ++-------------------------------------- 1 file changed, 2 insertions(+), 41 deletions(-) (limited to 'apps/web/app/dashboard/error.tsx') diff --git a/apps/web/app/dashboard/error.tsx b/apps/web/app/dashboard/error.tsx index 2577d2bf..bf1ae0a0 100644 --- a/apps/web/app/dashboard/error.tsx +++ b/apps/web/app/dashboard/error.tsx @@ -1,46 +1,7 @@ "use client"; -import Link from "next/link"; -import { Button } from "@/components/ui/button"; -import { AlertTriangle, Home, RefreshCw } from "lucide-react"; +import ErrorFallback from "@/components/dashboard/ErrorFallback"; export default function Error() { - return ( -
-
- {/* Error Icon */} -
-
- -
-
- - {/* Main Content */} -
-

- Oops! Something went wrong -

-

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

-
- - {/* Action Buttons */} -
- - - - - -
-
-
- ); + return ; } -- cgit v1.2.3-70-g09d2