From 1a0f52e26acb540af2c613c0e664c58546883aee Mon Sep 17 00:00:00 2001 From: spaaaacccee Date: Sun, 19 May 2024 05:08:46 +1000 Subject: [PATCH] Fix rendering issue --- src/theme/Root.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");