Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
public_content
temp-redux-1-gsm-scratch
Commits
9cd1d667
Commit
9cd1d667
authored
1 year ago
by
Aman
💬
Browse files
Options
Download
Email Patches
Plain Diff
App.js darkMode bug fix commit
parent
5ae48881
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/App.js
src/App.js
+1
-1
No files found.
src/App.js
View file @
9cd1d667
...
...
@@ -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
}
`
}
>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment