hydration error

This commit is contained in:
Timo Knuth
2026-01-27 11:08:32 +01:00
parent 76a76258e8
commit be5db36b7f
7 changed files with 102 additions and 79 deletions

View File

@@ -31,12 +31,12 @@ export default function CookieBanner() {
setShowBanner(false);
};
if (!showBanner) return null;
return (
<>
{/* Cookie Banner - Bottom Left Corner */}
<div className="fixed bottom-4 left-4 z-50 max-w-md animate-slide-in">
<div suppressHydrationWarning>
{showBanner && (
<>
{/* Cookie Banner - Bottom Left Corner */}
<div className="fixed bottom-4 left-4 z-50 max-w-md animate-slide-in">
<div className="bg-white rounded-lg shadow-2xl border border-gray-200 p-6">
<div className="flex items-start gap-3 mb-4">
<div className="flex-shrink-0">
@@ -111,6 +111,8 @@ export default function CookieBanner() {
animation: slide-in 0.4s ease-out;
}
`}</style>
</>
</>
)}
</div>
);
}