Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private getModifierChangeHandler(name: keyof PopperModifiers) {
return handleBooleanChange(enabled => {
this.setState({
modifiers: {
...this.state.modifiers,
[name]: { ...this.state.modifiers[name], enabled },
},
});
});
}
private getModifierChangeHandler(name: keyof PopperJS.Modifiers) {
return handleBooleanChange(enabled => {
this.setState({
modifiers: {
...this.state.modifiers,
[name]: { ...this.state.modifiers[name], enabled },
},
});
});
}