Commit 9cd1d667 authored by Aman's avatar Aman 💬
Browse files

App.js darkMode bug fix commit

parent 5ae48881
......@@ -7,7 +7,7 @@ import store from './todoStore'
export default function App() {
// const [isDarkMode, setIsDarkMode] = useState(false);
const themeClass = store.getState() ? "dark" : "light";
const themeClass = store.getState().isDarkMode ? "dark" : "light";
return (
<div className={`wrapper ${themeClass}`}>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment