From d53b28261cecdb093128f59acf15af3e7919d3ca Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sun, 14 Sep 2025 09:56:18 +0000 Subject: feat: A better looking catch all error boundary --- apps/web/app/dashboard/error.tsx | 41 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/web/app/dashboard/error.tsx b/apps/web/app/dashboard/error.tsx index 556e59a3..2577d2bf 100644 --- a/apps/web/app/dashboard/error.tsx +++ b/apps/web/app/dashboard/error.tsx @@ -1,9 +1,46 @@ "use client"; +import Link from "next/link"; +import { Button } from "@/components/ui/button"; +import { AlertTriangle, Home, RefreshCw } from "lucide-react"; + export default function Error() { return ( -
-
Something went wrong
+
+
+ {/* 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 */} +
+ + + + + +
+
); } -- cgit v1.2.3-70-g09d2