-
- {formData.published ? 'Published' : 'Draft'}
+
+ {formData.published ? "Published" : "Draft"}
{formData.featured && (
@@ -879,10 +955,14 @@ function EditorPageContent() {
export default function EditorPage() {
return (
-
- Loading editor...
- }>
+
+ Loading editor...
+
+ }
+ >
);
-}
\ No newline at end of file
+}
diff --git a/app/error.tsx b/app/error.tsx
new file mode 100644
index 0000000..da8f3d2
--- /dev/null
+++ b/app/error.tsx
@@ -0,0 +1,27 @@
+"use client";
+
+import { useEffect } from "react";
+
+export default function Error({
+ error,
+ reset,
+}: {
+ error: Error & { digest?: string };
+ reset: () => void;
+}) {
+ useEffect(() => {
+ console.error(error);
+ }, [error]);
+
+ return (
+
+
Something went wrong!
+
+
+ );
+}
\ No newline at end of file
diff --git a/app/global-error.tsx b/app/global-error.tsx
new file mode 100644
index 0000000..73e3104
--- /dev/null
+++ b/app/global-error.tsx
@@ -0,0 +1,45 @@
+"use client";
+
+import { useEffect } from "react";
+
+export default function GlobalError({
+ error,
+ reset,
+}: {
+ error: Error & { digest?: string };
+ reset: () => void;
+}) {
+ useEffect(() => {
+ // Log error details to console
+ console.error("Global Error:", error);
+ console.error("Error Name:", error.name);
+ console.error("Error Message:", error.message);
+ console.error("Error Stack:", error.stack);
+ console.error("Error Digest:", error.digest);
+ }, [error]);
+
+ return (
+
+
+
+
+ Critical System Error
+
+
+
Error Type: {error.name}
+
Message: {error.message}
+ {error.digest && (
+
Digest: {error.digest}
+ )}
+
+
+
+
+
+ );
+}
diff --git a/app/layout.tsx b/app/layout.tsx
index 9ba9ebc..984a471 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -4,8 +4,9 @@ import { Inter } from "next/font/google";
import React from "react";
import { ToastProvider } from "@/components/Toast";
import { AnalyticsProvider } from "@/components/AnalyticsProvider";
-import { BackgroundBlobs } from "@/components/BackgroundBlobs";
-import { ErrorBoundary } from "@/components/ErrorBoundary";
+import { ClientOnly } from "./components/ClientOnly";
+import BackgroundBlobsClient from "./components/BackgroundBlobsClient";
+import ChatWidget from "./components/ChatWidget";
const inter = Inter({
variable: "--font-inter",
@@ -29,14 +30,15 @@ export default function RootLayout({
Dennis Konkol's Portfolio
-
-
-
-
- {children}
-
-
-
+
+
+
+
+
+ {children}
+
+
+