summaryrefslogtreecommitdiffstats
path: root/webapp/components/form_error.jsx
diff options
context:
space:
mode:
authorAsaad Mahmood <asaadmahmoodspin@users.noreply.github.com>2016-07-05 20:13:50 +0500
committerHarrison Healey <harrisonmhealey@gmail.com>2016-07-05 11:13:50 -0400
commit068df708c0ca02f563579ba48c2ed924388107ed (patch)
tree46b56e0669a9b4b45f9da969dfd2bb7ac87a3e0c /webapp/components/form_error.jsx
parentb8189369edff09b80470b2e1914d18bcb46d02bb (diff)
downloadchat-068df708c0ca02f563579ba48c2ed924388107ed.tar.gz
chat-068df708c0ca02f563579ba48c2ed924388107ed.tar.bz2
chat-068df708c0ca02f563579ba48c2ed924388107ed.zip
Fixing errors in system console (#3484)
Diffstat (limited to 'webapp/components/form_error.jsx')
-rw-r--r--webapp/components/form_error.jsx14
1 files changed, 1 insertions, 13 deletions
diff --git a/webapp/components/form_error.jsx b/webapp/components/form_error.jsx
index 395adfaab..3c73759c5 100644
--- a/webapp/components/form_error.jsx
+++ b/webapp/components/form_error.jsx
@@ -8,7 +8,6 @@ export default class FormError extends React.Component {
// accepts either a single error or an array of errors
return {
error: React.PropTypes.node,
- noMargin: React.PropTypes.node,
errors: React.PropTypes.arrayOf(React.PropTypes.node)
};
}
@@ -27,7 +26,6 @@ export default class FormError extends React.Component {
// look for the first truthy error to display
let message = this.props.error;
- const noMargin = this.props.noMargin;
if (!message) {
for (const error of this.props.errors) {
@@ -41,18 +39,8 @@ export default class FormError extends React.Component {
return null;
}
- if (noMargin) {
- return (
- <div className='has-error'>
- <label className='control-label'>
- {message}
- </label>
- </div>
- );
- }
-
return (
- <div className='form-group has-error'>
+ <div className='col-sm-12 has-error'>
<label className='control-label'>
{message}
</label>