add input test

This commit is contained in:
Shin'ya Ueoka 2017-11-26 09:43:43 +09:00
parent 256e7372d4
commit e90cf895ad
3 changed files with 86 additions and 4 deletions

View file

@ -6,10 +6,7 @@ class Input extends Component {
renderText(props) {
let inputClassName = props.error ? 'input-error' : '';
return <div className='settings-ui-input'>
<label
type='text'
htmlFor={props.id}
>{ props.label }</label>
<label htmlFor={props.id}>{ props.label }</label>
<input type='text' className={inputClassName} {...props} />
</div>;
}