clarifiy checkbox

This commit is contained in:
Florian Scholdei
2019-06-12 16:27:16 +02:00
parent d50f6e0ec9
commit 5f435a524e
3 changed files with 29 additions and 22 deletions

View File

@@ -22,19 +22,18 @@ class Radio extends React.Component<Props> {
render() {
return (
<label className="radio" disabled={this.props.disabled}>
<input
type="radio"
name={this.props.name}
value={this.props.value}
checked={this.props.checked}
onChange={this.props.onChange}
disabled={this.props.disabled}
/>{" "}
{this.props.label}
{this.renderHelp()}
</label>
<label className="radio" disabled={this.props.disabled}>
<input
type="radio"
name={this.props.name}
value={this.props.value}
checked={this.props.checked}
onChange={this.props.onChange}
disabled={this.props.disabled}
/>{" "}
{this.props.label}
{this.renderHelp()}
</label>
);
}
}