Skip to content

Commit

Permalink
Fix: toggle light / dark makes background white (#4553)
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon authored Jan 3, 2025
1 parent 6f429a6 commit 1a85175
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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",
)}
>
<div
Expand Down

0 comments on commit 1a85175

Please sign in to comment.