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

@@ -26,9 +26,6 @@ export default function MarketingLayout({
setScrolled(window.scrollY > 20);
};
// Check immediately on mount
handleScroll();
window.addEventListener('scroll', handleScroll, { passive: true });
return () => window.removeEventListener('scroll', handleScroll);
}, []);
@@ -37,6 +34,7 @@ export default function MarketingLayout({
useEffect(() => {
setMobileMenuOpen(false);
setToolsOpen(false);
setMobileToolsOpen(false);
}, [pathname]);
// Default to English for general marketing pages