mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-18 10:04:36 +01:00
Fix reusable react components duplicate id... dumbass
This commit is contained in:
@@ -40,10 +40,10 @@ export default class Checkbox extends React.Component<IProps, IState> {
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div className="Checkbox" id="commonCheckboxContainer">
|
||||
<div className="Checkbox">
|
||||
<input type='checkbox' id={this.props.id} checked={this.state.checked} onChange={this.handleChange} />
|
||||
<label id="commonCheckboxLabel" htmlFor={this.props.id}>
|
||||
<div className="CheckboxDisplay" id="commonCheckboxDisplay">
|
||||
<div className="CheckboxDisplay">
|
||||
{this.state.checked ? <img src={checkmark} alt='Checkmark' /> : null}
|
||||
</div>
|
||||
<span>{this.props.label || ''}</span>
|
||||
|
||||
Reference in New Issue
Block a user