From 8dfcaa372382f70da5e20d9c8fd65392424e3cfc Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Tue, 13 Feb 2024 21:33:00 +0000 Subject: feature: Add error and not found boundaries in the dashboard --- packages/web/app/dashboard/error.tsx | 9 +++++++++ packages/web/app/dashboard/not-found.tsx | 7 +++++++ 2 files changed, 16 insertions(+) create mode 100644 packages/web/app/dashboard/error.tsx create mode 100644 packages/web/app/dashboard/not-found.tsx (limited to 'packages') diff --git a/packages/web/app/dashboard/error.tsx b/packages/web/app/dashboard/error.tsx new file mode 100644 index 00000000..2bba0e98 --- /dev/null +++ b/packages/web/app/dashboard/error.tsx @@ -0,0 +1,9 @@ +"use client"; + +export default function Error() { + return ( +
+
Something went wrong
+
+ ); +} diff --git a/packages/web/app/dashboard/not-found.tsx b/packages/web/app/dashboard/not-found.tsx new file mode 100644 index 00000000..abd1ebae --- /dev/null +++ b/packages/web/app/dashboard/not-found.tsx @@ -0,0 +1,7 @@ +export default function NotFound() { + return ( +
+
Not Found :(
+
+ ); +} -- cgit v1.2.3-70-g09d2