From bb5eff8b5bbcd20da3c8a46cb7613914b4a7932d Mon Sep 17 00:00:00 2001 From: i701 Date: Sat, 12 Apr 2025 14:42:24 +0500 Subject: [PATCH] refactor: remove layout error component from dashboard --- app/(dashboard)/error.tsx | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 app/(dashboard)/error.tsx diff --git a/app/(dashboard)/error.tsx b/app/(dashboard)/error.tsx deleted file mode 100644 index a3c0d92..0000000 --- a/app/(dashboard)/error.tsx +++ /dev/null @@ -1,36 +0,0 @@ -'use client' // Error boundaries must be Client Components - -import { Button } from '@/components/ui/button' -import { TriangleAlert } from "lucide-react"; -import { useEffect } from 'react' -export default function DashboardError({ - error, - reset, -}: { - error: Error & { digest?: string } - reset: () => void -}) { - useEffect(() => { - // Log the error to an error reporting service - console.error(error) - }, [error]) - - return ( -
-
- -

Something went wrong!

- -
-
- ) -} \ No newline at end of file