We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 328e60c commit e93adbfCopy full SHA for e93adbf
src/components/App/index.js
@@ -14,9 +14,13 @@ import {CssBaseline} from "@material-ui/core";
14
15
function App() {
16
17
- const themeIndex = useSelector(state => state.MainReducer.themeIndex);
+ let themeIndex = useSelector(state => state.MainReducer.themeIndex);
18
+ let themeType = "light";
19
+ if (themeIndex === 8) {
20
+ themeType = "dark";
21
+ themeIndex = 2;
22
+ }
23
const color = ThemeSelector(themeIndex);
- const themeType = themeIndex === 8 ? 'dark' : 'light';
24
25
const theme = createMuiTheme({
26
palette: {
0 commit comments