Skip to content

Commit

Permalink
Fix rendering issue
Browse files Browse the repository at this point in the history
  • Loading branch information
spaaaacccee committed May 18, 2024
1 parent 3cb3a4d commit 1a0f52e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/theme/Root.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { get, set } from "../components/storage";

// Default implementation, that you can customize
export default function Root({ children }) {
const [mode, setMode] = useState(get(mode) || "light");
const [mode, setMode] = useState(get("theme") || "light");
const theme = useMemo(() => makeTheme(mode), [mode]);
useEffect(() => {
setMode(get("theme") || "light");
Expand Down

0 comments on commit 1a0f52e

Please sign in to comment.