add input test
This commit is contained in:
parent
256e7372d4
commit
e90cf895ad
3 changed files with 86 additions and 4 deletions
|
@ -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>;
|
||||
}
|
||||
|
|
Reference in a new issue