Update theme logic in App.tsx

This commit is contained in:
2026-02-01 04:35:11 +01:00
parent 7f2fe4a823
commit 4413a57c0d

View File

@@ -178,7 +178,7 @@ export default function App() {
useEffect(() => {
document.body.dataset.theme = theme;
document.body.dataset.theme = theme === "dark" ? "default" : "light";
localStorage.setItem("textdb.theme", theme);
}, [theme]);