Fixed switch logic suddenly not being in code anymore.
This commit is contained in:
parent
8b2fe49b31
commit
bf789b4c73
|
@ -150,6 +150,8 @@ class ResponsiveDrawer extends React.Component {
|
||||||
handleChange = name => event => {
|
handleChange = name => event => {
|
||||||
const { cookies } = this.props;
|
const { cookies } = this.props;
|
||||||
|
|
||||||
|
this.setState({ [name]: event.target.checked });
|
||||||
|
|
||||||
var newTheme, newName;
|
var newTheme, newName;
|
||||||
|
|
||||||
if (this.state.themeName === 'light') {
|
if (this.state.themeName === 'light') {
|
||||||
|
|
Loading…
Reference in New Issue