mirror of
https://github.com/wassname/talk.git
synced 2026-07-11 04:43:15 +08:00
Replace element with name instead of id. Add style to textfield from coral-ui.
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user