Remove superflous list
This commit is contained in:
parent
69747b6114
commit
fb9b14ec51
1 changed files with 12 additions and 14 deletions
|
@ -40,19 +40,17 @@ export default class StyledCheckbox extends React.PureComponent<IProps, IState>
|
||||||
public render() {
|
public render() {
|
||||||
const { children, className, ...otherProps } = this.props;
|
const { children, className, ...otherProps } = this.props;
|
||||||
// 56^10 so unlikely chance of collision.
|
// 56^10 so unlikely chance of collision.
|
||||||
return [
|
return <span className={"mx_Checkbox " + className}>
|
||||||
<span className={"mx_Checkbox " + className}>
|
<input id={this.id} {...otherProps} type="checkbox" />
|
||||||
<input id={this.id} {...otherProps} type="checkbox" />
|
<label htmlFor={this.id}>
|
||||||
<label htmlFor={this.id}>
|
{/* Using the div to center the image */}
|
||||||
{/* Using the div to center the image */}
|
<div className="mx_Checkbox_background">
|
||||||
<div className="mx_Checkbox_background">
|
<img src={CHECK_BOX_SVG}/>
|
||||||
<img src={CHECK_BOX_SVG}/>
|
</div>
|
||||||
</div>
|
<div>
|
||||||
<div>
|
{ this.props.children }
|
||||||
{ this.props.children }
|
</div>
|
||||||
</div>
|
</label>
|
||||||
</label>
|
</span>
|
||||||
</span>
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue