Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount() {
this.themer = new Themer({
debug: true,
onUpdate: theme => this.setState({ active: theme }),
themes: {
light,
dark,
auto,
system,
custom
}
});
this.themer.set(this.state.selected);
}
mounted() {
this.themer = new Themer({
debug: true,
onUpdate: theme => (this.active = theme),
themes: { light, dark, auto, system, custom }
});
this.themer.set(this.selected);
}
};
componentDidMount() {
this.themer = new Themer({
debug: true,
onUpdate: theme => this.setState({ active: theme }),
themes: { light, dark, auto, system, custom }
});
this.themer.set(this.state.selected);
}