|
|
|
@ -9,8 +9,9 @@ export default class extends React.Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
toggle() {
|
|
|
|
|
this.setState({ isEnabled: !this.state.isEnabled })
|
|
|
|
|
this.props.onChange(this.state.isEnabled)
|
|
|
|
|
this.setState({ isEnabled: !this.state.isEnabled }, () => {
|
|
|
|
|
this.props.onChange(this.state.isEnabled)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|