Replace element with name instead of id. Add style to textfield from coral-ui.

This commit is contained in:
gaba
2017-02-14 17:48:10 -08:00
parent 0f074dc034
commit d7469d648d
2 changed files with 4 additions and 3 deletions
@@ -48,7 +48,7 @@ export default ({handleChange, handleApply, changed, updateQuestionBoxContent, .
<div className={`${styles.configSettingQuestionBox} ${props.questionBoxEnable ? null : styles.hidden}`} >
<TextField
id="qboxcontent"
name="qboxcontent"
className={`${styles.configSettingQuestionBoxInfo}`}
onChange={updateQuestionBoxContent}
rows={3}
+3 -2
View File
@@ -4,15 +4,16 @@ import 'material-design-lite';
export default class TextField extends Component {
render() {
const {id, className, onChange, label, rows, value} = this.props;
const {name, className, onChange, label, rows, value, style} = this.props;
return (
<TextFieldMDL
id={id}
name={name}
className={className}
onChange={onChange}
label={label}
rows={rows}
value={value}
style={style}
/>
);
}