fix: theme flickering (#16903)

* fix: theme flickering

* finalise
This commit is contained in:
Benny Joo authored and GitHub committed 2024-10-15 11:13:39 +01:00
1 parent 0b3b268eed
commit 4037367f8c
2 files changed
+38 -1

No files matched your search

@@ -202,6 +202,11 @@ const AppearanceView = ({
mutation.mutate({
appTheme: null,
});
if (values.appTheme === "light") {
document.body.classList.remove("dark");
} else if (values.appTheme === "dark") {
document.body.classList.remove("light");
}
}}>
<div className="border-subtle flex flex-col justify-between border-x px-6 py-8 sm:flex-row">
<ThemeLabel