diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-09-03 10:49:36 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-09-03 15:00:47 -0400 |
commit | 4b22c1f99cb05be5ca187f2fd70ee2664c34de57 (patch) | |
tree | bfbaa7c5c849b6656eb8ea1267ce36028b0670b2 /web/react/components/edit_post_modal.jsx | |
parent | e69e2db6b4724517a39c57e3689dec82608581ee (diff) | |
download | chat-4b22c1f99cb05be5ca187f2fd70ee2664c34de57.tar.gz chat-4b22c1f99cb05be5ca187f2fd70ee2664c34de57.tar.bz2 chat-4b22c1f99cb05be5ca187f2fd70ee2664c34de57.zip |
Upgrading ESLint and adding some more rules. Refactoring to meet these new rules
Diffstat (limited to 'web/react/components/edit_post_modal.jsx')
-rw-r--r-- | web/react/components/edit_post_modal.jsx | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/web/react/components/edit_post_modal.jsx b/web/react/components/edit_post_modal.jsx index fef60c715..ad7bd30b5 100644 --- a/web/react/components/edit_post_modal.jsx +++ b/web/react/components/edit_post_modal.jsx @@ -88,7 +88,8 @@ export default class EditPostModal extends React.Component { id='edit_post' role='dialog' tabIndex='-1' - aria-hidden='true' > + aria-hidden='true' + > <div className='modal-dialog modal-push-down'> <div className='modal-content'> <div className='modal-header'> @@ -97,7 +98,8 @@ export default class EditPostModal extends React.Component { className='close' data-dismiss='modal' aria-label='Close' - onClick={this.handleEditClose}> + onClick={this.handleEditClose} + > <span aria-hidden='true'>×</span> </button> <h4 className='modal-title'>Edit {this.state.title}</h4> @@ -110,20 +112,22 @@ export default class EditPostModal extends React.Component { createMessage='Edit the post...' id='edit_textbox' ref='editbox' - /> + /> {error} </div> <div className='modal-footer'> <button type='button' className='btn btn-default' - data-dismiss='modal' > + data-dismiss='modal' + > Cancel </button> <button type='button' className='btn btn-primary' - onClick={this.handleEdit}> + onClick={this.handleEdit} + > Save </button> </div> |