1
0
Fork 0

Fix switches

Signed-off-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
Egor Savkin 2024-01-09 14:13:13 +08:00
parent 70b8dd1075
commit aa78140aa3
2 changed files with 0 additions and 2 deletions

View File

@ -35,7 +35,6 @@ class Switch extends Component {
id={key}
checked={this.state.checked}
onClick={this.handleClick}
onChange={this.handleClick}
/>
<label className="form-check-label" htmlFor={key} style={{"display": "inline"}}>
{this.props.icon && <img src={`/images${this.props.icon}`} className="options-icon"/>}

View File

@ -46,7 +46,6 @@ class SwitchLine extends Component {
id={key + "switch"}
checked={this.state.checked}
onClick={this.handleCheck}
onChange={this.handleCheck}
/>
<label className="form-check-label" htmlFor={key + "switch"}>
{this.props.icon && <img src={`/images${this.props.icon}`} className="options-icon"/>}