aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-02-13 21:33:00 +0000
committerMohamedBassem <me@mbassem.com>2024-02-13 21:33:00 +0000
commit8dfcaa372382f70da5e20d9c8fd65392424e3cfc (patch)
tree33d53da22331740018b8808ca2dfc8d4da682878 /packages
parentcb86c43e4c204f1e29a51b3be85f434b7c7172f5 (diff)
downloadkarakeep-8dfcaa372382f70da5e20d9c8fd65392424e3cfc.tar.zst
feature: Add error and not found boundaries in the dashboard
Diffstat (limited to 'packages')
-rw-r--r--packages/web/app/dashboard/error.tsx9
-rw-r--r--packages/web/app/dashboard/not-found.tsx7
2 files changed, 16 insertions, 0 deletions
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 (
+ <div className="flex size-full">
+ <div className="m-auto text-3xl">Something went wrong</div>
+ </div>
+ );
+}
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 (
+ <div className="flex size-full">
+ <div className="m-auto text-3xl">Not Found :(</div>
+ </div>
+ );
+}