fix: 3 erros React — next/script p/ tema, 'use client' Footer+donate, remover metadata incompatível

This commit is contained in:
2026-05-27 11:05:30 +01:00
parent c9f4faf0a7
commit 7be9d5131f
8 changed files with 52 additions and 28 deletions

View File

@@ -1,3 +1,5 @@
'use client';
import Link from 'next/link';
import { PawPrint, Heart } from 'lucide-react';

View File

@@ -43,7 +43,7 @@ export default function SideMenu({ open, onClose }: SideMenuProps) {
const isDark = document.documentElement.classList.toggle('dark');
document.documentElement.setAttribute('data-theme', isDark ? 'dark' : 'light');
setDark(isDark);
try { localStorage.setItem('pawlink-theme', isDark ? 'dark' : 'light'); } catch (_) {}
try { localStorage.setItem('petlink-theme', isDark ? 'dark' : 'light'); } catch (_) {}
};
const menuItems = [