diff options
author | Anike Arni <aarni@thoughtworks.com> | 2017-02-07 19:46:45 -0200 |
---|---|---|
committer | Anike Arni <aarni@thoughtworks.com> | 2017-02-08 13:51:36 -0200 |
commit | 7f76c79319bf0817222fc88011fd870d97648963 (patch) | |
tree | 0931901230ed645e8a6d7d17081e1769392ec928 /web-ui/src/common | |
parent | a1c384cebd80e177389ef79c2de6400db986aaa6 (diff) |
[#922] Adds eslint for react and es6 files
Diffstat (limited to 'web-ui/src/common')
-rw-r--r-- | web-ui/src/common/input_field/input_field.js | 5 | ||||
-rw-r--r-- | web-ui/src/common/submit_button/submit_button.js | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/web-ui/src/common/input_field/input_field.js b/web-ui/src/common/input_field/input_field.js index 43899419..70d18618 100644 --- a/web-ui/src/common/input_field/input_field.js +++ b/web-ui/src/common/input_field/input_field.js @@ -26,4 +26,9 @@ const InputField = ({ label, name }) => ( </div> ) +InputField.propTypes = { + label: React.PropTypes.string.isRequired, + name: React.PropTypes.string.isRequired +} + export default InputField diff --git a/web-ui/src/common/submit_button/submit_button.js b/web-ui/src/common/submit_button/submit_button.js index 89cfc55b..ea1bbf26 100644 --- a/web-ui/src/common/submit_button/submit_button.js +++ b/web-ui/src/common/submit_button/submit_button.js @@ -23,4 +23,8 @@ const SubmitButton = ({ buttonText }) => ( <input type='submit' className='submit-button' value={buttonText} /> ) +SubmitButton.propTypes = { + buttonText: React.PropTypes.string.isRequired +} + export default SubmitButton |