From 1a85175b153341aa5e73c944aa4119594fa26fff Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 2 Jan 2025 19:13:14 -0800 Subject: [PATCH] Fix: toggle light / dark makes background white (#4553) --- src/pages/index.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/index.jsx b/src/pages/index.jsx index 7dbadbf1e..fdf716f6e 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -459,7 +459,7 @@ function Home({ initialSettings }) { } export default function Wrapper({ initialSettings, fallback }) { - const { theme } = useContext(ThemeContext); + const { themeContext } = useContext(ThemeContext); const wrappedStyle = {}; let backgroundBlur = false; let backgroundSaturate = false; @@ -490,9 +490,9 @@ export default function Wrapper({ initialSettings, fallback }) { id="page_wrapper" className={classNames( "relative", - theme && theme, + initialSettings.theme && initialSettings.theme, initialSettings.color && `theme-${initialSettings.color}`, - theme === "dark" ? "scheme-dark" : "scheme-light", + themeContext === "dark" ? "scheme-dark" : "scheme-light", )} >