diff options
Diffstat (limited to 'web-ui/src/common/submit_button')
-rw-r--r-- | web-ui/src/common/submit_button/submit-button.scss | 2 | ||||
-rw-r--r-- | web-ui/src/common/submit_button/submit_button.js | 12 |
2 files changed, 8 insertions, 6 deletions
diff --git a/web-ui/src/common/submit_button/submit-button.scss b/web-ui/src/common/submit_button/submit-button.scss index ccd0bef4..13cb7607 100644 --- a/web-ui/src/common/submit_button/submit-button.scss +++ b/web-ui/src/common/submit_button/submit-button.scss @@ -32,7 +32,6 @@ @media only screen and (min-width : 500px) { .submit-button { width: 70%; - -webkit-align-self: center; align-self: center; } } @@ -40,7 +39,6 @@ @media only screen and (min-width : 960px) { .submit-button { width: 300px; - -webkit-align-self: flex-start; align-self: flex-start; font-size: 0.8em; margin-bottom: 1em; diff --git a/web-ui/src/common/submit_button/submit_button.js b/web-ui/src/common/submit_button/submit_button.js index 89cfc55b..fb87bf7d 100644 --- a/web-ui/src/common/submit_button/submit_button.js +++ b/web-ui/src/common/submit_button/submit_button.js @@ -15,12 +15,16 @@ * along with Pixelated. If not, see <http://www.gnu.org/licenses/>. */ -import React from 'react' +import React from 'react'; -import './submit-button.scss' +import './submit-button.scss'; const SubmitButton = ({ buttonText }) => ( <input type='submit' className='submit-button' value={buttonText} /> -) +); -export default SubmitButton +SubmitButton.propTypes = { + buttonText: React.PropTypes.string.isRequired +}; + +export default SubmitButton; |