diff options
author | =Corey Hulen <corey@hulen.com> | 2015-09-01 17:06:31 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-09-01 17:06:31 -0700 |
commit | f578bb1e48ec4d97bca92c7faf0dd8ed5aeceb39 (patch) | |
tree | 8b4f68e847984949b8362a30d40f13db2c4bcd52 /web/react/components/channel_invite_modal.jsx | |
parent | 72575ac7bdd5bfe7bd544ba238f8d1c0126635aa (diff) | |
download | chat-f578bb1e48ec4d97bca92c7faf0dd8ed5aeceb39.tar.gz chat-f578bb1e48ec4d97bca92c7faf0dd8ed5aeceb39.tar.bz2 chat-f578bb1e48ec4d97bca92c7faf0dd8ed5aeceb39.zip |
MM-2065 style refactoring
Diffstat (limited to 'web/react/components/channel_invite_modal.jsx')
-rw-r--r-- | web/react/components/channel_invite_modal.jsx | 38 |
1 files changed, 31 insertions, 7 deletions
diff --git a/web/react/components/channel_invite_modal.jsx b/web/react/components/channel_invite_modal.jsx index b70811db1..f76ede604 100644 --- a/web/react/components/channel_invite_modal.jsx +++ b/web/react/components/channel_invite_modal.jsx @@ -9,7 +9,6 @@ var utils = require('../utils/utils.jsx'); var client = require('../utils/client.jsx'); var AsyncClient = require('../utils/async_client.jsx'); - export default class ChannelInviteModal extends React.Component { constructor() { super(); @@ -129,15 +128,37 @@ export default class ChannelInviteModal extends React.Component { if (this.state.loading) { content = (<LoadingScreen />); } else { - content = (<MemberList memberList={this.state.nonmembers} isAdmin={isAdmin} handleInvite={this.handleInvite} />); + content = ( + <MemberList + memberList={this.state.nonmembers} + isAdmin={isAdmin} + handleInvite={this.handleInvite} + /> + ); } return ( - <div className='modal fade' id='channel_invite' tabIndex='-1' role='dialog' aria-hidden='true'> - <div className='modal-dialog' role='document'> + <div + className='modal fade' + id='channel_invite' + tabIndex='-1' + role='dialog' + aria-hidden='true' + > + <div + className='modal-dialog' + role='document' + > <div className='modal-content'> <div className='modal-header'> - <button type='button' className='close' data-dismiss='modal' aria-label='Close'><span aria-hidden='true'>×</span></button> + <button + type='button' + className='close' + data-dismiss='modal' + aria-label='Close' + > + <span aria-hidden='true'>×</span> + </button> <h4 className='modal-title'>Add New Members to <span className='name'>{this.state.channelName}</span></h4> </div> <div className='modal-body'> @@ -145,7 +166,11 @@ export default class ChannelInviteModal extends React.Component { {content} </div> <div className='modal-footer'> - <button type='button' className='btn btn-default' data-dismiss='modal'>Close</button> + <button + type='button' + className='btn btn-default' + data-dismiss='modal' + >Close</button> </div> </div> </div> @@ -153,4 +178,3 @@ export default class ChannelInviteModal extends React.Component { ); } } -ChannelInviteModal.displayName = 'ChannelInviteModal'; |