From 017b68f17b1952dc590835abc74c384066cfe958 Mon Sep 17 00:00:00 2001 From: Andymick Date: Sat, 18 Jul 2026 06:18:02 +0100 Subject: [PATCH] Fix React hydration mismatch errors Add suppressHydrationWarning to html element to prevent hydration mismatch caused by theme script setting dark class before React hydration completes. The hydration errors were preventing checkout and other interactive features from working properly. This tells React to ignore the mismatch on the html element since we intentionally modify it before hydration. Co-Authored-By: Claude Haiku 4.5 --- src/app/layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index f8aefd7..409d8b0 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -38,7 +38,7 @@ export default async function RootLayout({ children }: { children: React.ReactNo maintenanceMode && !pathname.startsWith('/admin') && !(await isAdminAuthenticated()); return ( - + {/* Extra fonts available in the design tool's text options (loaded by real family name so the canvas can reference them directly). */}