diff options
author | Tayane Fernandes <tayane.rmf@gmail.com> | 2017-03-10 15:25:43 -0300 |
---|---|---|
committer | Tayane Fernandes <tayane.rmf@gmail.com> | 2017-03-10 15:25:43 -0300 |
commit | 9e5dce775c51b44cf7b17d8ab564fdefc16a06c0 (patch) | |
tree | b7db13a1d2dda9319e157f3ac222aaa620aa3972 /web-ui/src/common | |
parent | 29a59d4ec216a895c8004fc0addbec1b329df200 (diff) |
[#923] Fix the submit button when the email is empty
When the email is empty the button should be disabled, but we should not see
any error message
with @FrailWords
Diffstat (limited to 'web-ui/src/common')
-rw-r--r-- | web-ui/src/common/submit_button/submit_button.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/web-ui/src/common/submit_button/submit_button.js b/web-ui/src/common/submit_button/submit_button.js index 73f9b21c..1224c7bd 100644 --- a/web-ui/src/common/submit_button/submit_button.js +++ b/web-ui/src/common/submit_button/submit_button.js @@ -30,9 +30,10 @@ const buttonStyle = { height: '48px' }; -const SubmitButton = ({ buttonText, disabled=false }) => ( +const SubmitButton = ({ buttonText, disabled = false }) => ( <div className='submit-button'> - <RaisedButton type='submit' + <RaisedButton + type='submit' label={buttonText} disabled={disabled} labelStyle={labelStyle} |