diff options
Diffstat (limited to 'web-ui/src/common/input_field/input_field.js')
-rw-r--r-- | web-ui/src/common/input_field/input_field.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/web-ui/src/common/input_field/input_field.js b/web-ui/src/common/input_field/input_field.js index 332d5911..438241e1 100644 --- a/web-ui/src/common/input_field/input_field.js +++ b/web-ui/src/common/input_field/input_field.js @@ -16,16 +16,20 @@ */ import React from 'react'; +import TextField from 'material-ui/TextField'; import './input_field.scss'; const InputField = ({ label, name, type = 'text', ...other }) => ( <div className='input-field-group'> - <input - type={type} name={name} className='input-field' - required {...other} + <TextField + hintText={label} + floatingLabelText={label} + name={name} + type={type} + fullWidth + {...other} /> - <label className='input-field-label' htmlFor={name}>{label}</label> </div> ); |