Remove superflous list

pull/21833/head
Jorik Schellekens 2020-06-01 15:35:25 +01:00
parent 69747b6114
commit fb9b14ec51
1 changed files with 12 additions and 14 deletions

View File

@ -40,8 +40,7 @@ export default class StyledCheckbox extends React.PureComponent<IProps, IState>
public render() {
const { children, className, ...otherProps } = this.props;
// 56^10 so unlikely chance of collision.
return [
<span className={"mx_Checkbox " + className}>
return <span className={"mx_Checkbox " + className}>
<input id={this.id} {...otherProps} type="checkbox" />
<label htmlFor={this.id}>
{/* Using the div to center the image */}
@ -53,6 +52,5 @@ export default class StyledCheckbox extends React.PureComponent<IProps, IState>
</div>
</label>
</span>
]
}
}