From 3eee51f74e893f3182519ad0edb72dd5d8b107fd Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Thu, 7 Jul 2016 02:32:27 +0500 Subject: UI fix for errors in signup and login pages and adding space between buttons in the security tab (#3512) * Fixing the errors style on login and signup pages * Adding space between login options in the security section --- webapp/components/form_error.jsx | 11 +++++++++++ webapp/components/login/login_controller.jsx | 5 ++++- webapp/components/signup_user_complete.jsx | 5 ++++- webapp/components/user_settings/user_settings_security.jsx | 11 +++++------ 4 files changed, 24 insertions(+), 8 deletions(-) diff --git a/webapp/components/form_error.jsx b/webapp/components/form_error.jsx index 3c73759c5..047595ef2 100644 --- a/webapp/components/form_error.jsx +++ b/webapp/components/form_error.jsx @@ -8,6 +8,7 @@ export default class FormError extends React.Component { // accepts either a single error or an array of errors return { error: React.PropTypes.node, + margin: React.PropTypes.node, errors: React.PropTypes.arrayOf(React.PropTypes.node) }; } @@ -39,6 +40,16 @@ export default class FormError extends React.Component { return null; } + if (this.props.margin) { + return ( +
+ +
+ ); + } + return (