Commit 6787ae03 authored by Matthew Taylor's avatar Matthew Taylor

Apply classes to row, not textarea

And move help rendering into the phone input row.
parent d8e07ee7
...@@ -53,9 +53,9 @@ var PhoneInput = React.createClass({ ...@@ -53,9 +53,9 @@ var PhoneInput = React.createClass({
label={null} label={null}
disabled={this.isFormDisabled() || this.props.disabled} disabled={this.isFormDisabled() || this.props.disabled}
/> />
{this.renderHelp()}
{this.renderErrorMessage()} {this.renderErrorMessage()}
</div> </div>
{this.renderHelp()}
</Row> </Row>
); );
} }
......
...@@ -11,13 +11,13 @@ var TextArea = React.createClass({ ...@@ -11,13 +11,13 @@ var TextArea = React.createClass({
type: 'TextArea', type: 'TextArea',
render: function () { render: function () {
var classes = classNames( var classes = classNames(
'textarea', 'textarea-row',
this.props.className this.props.className
); );
return ( return (
<FRCTextarea {... this.props} <FRCTextarea {... this.props}
className={classes} className="textarea"
rowClassName="textarea-row" /> rowClassName={classes} />
); );
} }
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment