diff --git a/src/theme/Root.js b/src/theme/Root.js index 09e300e..debb8ca 100644 --- a/src/theme/Root.js +++ b/src/theme/Root.js @@ -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");