fix: 3 erros React — next/script p/ tema, 'use client' Footer+donate, remover metadata incompatível
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
'use client';
|
||||
|
||||
import Link from 'next/link';
|
||||
import { PawPrint, Heart } from 'lucide-react';
|
||||
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user