fixcss de la page Vonlontaire

This commit is contained in:
ORDONNEAU Antoine
2026-04-01 18:17:59 +02:00
parent 9b814151ff
commit 483e281acd
2 changed files with 37 additions and 25 deletions
+3 -1
View File
@@ -29,7 +29,9 @@ const Background = ({ children, className }: BackgroundProps) => {
useEffect(() => {
const updateTheme = () => {
setTheme(localStorage.getItem("theme") || "light");
const t = localStorage.getItem("theme") || "light";
setTheme(t);
document.body.classList.toggle("dark", t === "dark");
};
updateTheme();