()
| 22 | } |
| 23 | |
| 24 | render(){ |
| 25 | const { status } = this.props |
| 26 | const className = classnames( |
| 27 | 'switch', |
| 28 | this.props.className |
| 29 | ); |
| 30 | return( |
| 31 | <label className={className}> |
| 32 | <input type="checkbox" checked={this.state.checked} onChange={this.handleChange}/> |
| 33 | <span className="switch-item"></span> |
| 34 | <span className="switch-mask"></span> |
| 35 | </label> |
| 36 | ); |
| 37 | } |
| 38 | |
| 39 | handleChange(ev){ |
| 40 | this.setState({'checked':!this.state.checked}) |
nothing calls this directly
no outgoing calls
no test coverage detected