fixcss de la page Vonlontaire
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user