forked from M-Labs/web2019
parent
70b8dd1075
commit
aa78140aa3
|
@ -35,7 +35,6 @@ class Switch extends Component {
|
||||||
id={key}
|
id={key}
|
||||||
checked={this.state.checked}
|
checked={this.state.checked}
|
||||||
onClick={this.handleClick}
|
onClick={this.handleClick}
|
||||||
onChange={this.handleClick}
|
|
||||||
/>
|
/>
|
||||||
<label className="form-check-label" htmlFor={key} style={{"display": "inline"}}>
|
<label className="form-check-label" htmlFor={key} style={{"display": "inline"}}>
|
||||||
{this.props.icon && <img src={`/images${this.props.icon}`} className="options-icon"/>}
|
{this.props.icon && <img src={`/images${this.props.icon}`} className="options-icon"/>}
|
||||||
|
|
|
@ -46,7 +46,6 @@ class SwitchLine extends Component {
|
||||||
id={key + "switch"}
|
id={key + "switch"}
|
||||||
checked={this.state.checked}
|
checked={this.state.checked}
|
||||||
onClick={this.handleCheck}
|
onClick={this.handleCheck}
|
||||||
onChange={this.handleCheck}
|
|
||||||
/>
|
/>
|
||||||
<label className="form-check-label" htmlFor={key + "switch"}>
|
<label className="form-check-label" htmlFor={key + "switch"}>
|
||||||
{this.props.icon && <img src={`/images${this.props.icon}`} className="options-icon"/>}
|
{this.props.icon && <img src={`/images${this.props.icon}`} className="options-icon"/>}
|
||||||
|
|
Loading…
Reference in New Issue