Skip to content

Commit e93adbf

Browse files
committed
* Re-use red color scheming for dark theme type
1 parent 328e60c commit e93adbf

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/App/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@ import {CssBaseline} from "@material-ui/core";
1414

1515
function App() {
1616

17-
const themeIndex = useSelector(state => state.MainReducer.themeIndex);
17+
let themeIndex = useSelector(state => state.MainReducer.themeIndex);
18+
let themeType = "light";
19+
if (themeIndex === 8) {
20+
themeType = "dark";
21+
themeIndex = 2;
22+
}
1823
const color = ThemeSelector(themeIndex);
19-
const themeType = themeIndex === 8 ? 'dark' : 'light';
2024

2125
const theme = createMuiTheme({
2226
palette: {

0 commit comments

Comments
 (0)