Skip to content

Commit 1a85175

Browse files
authored
Fix: toggle light / dark makes background white (#4553)
1 parent 6f429a6 commit 1a85175

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pages/index.jsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ function Home({ initialSettings }) {
459459
}
460460

461461
export default function Wrapper({ initialSettings, fallback }) {
462-
const { theme } = useContext(ThemeContext);
462+
const { themeContext } = useContext(ThemeContext);
463463
const wrappedStyle = {};
464464
let backgroundBlur = false;
465465
let backgroundSaturate = false;
@@ -490,9 +490,9 @@ export default function Wrapper({ initialSettings, fallback }) {
490490
id="page_wrapper"
491491
className={classNames(
492492
"relative",
493-
theme && theme,
493+
initialSettings.theme && initialSettings.theme,
494494
initialSettings.color && `theme-${initialSettings.color}`,
495-
theme === "dark" ? "scheme-dark" : "scheme-light",
495+
themeContext === "dark" ? "scheme-dark" : "scheme-light",
496496
)}
497497
>
498498
<div

0 commit comments

Comments
 (0)