diff options
author | Corey Hulen <corey@hulen.com> | 2015-09-03 13:37:25 -0700 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2015-09-03 13:37:25 -0700 |
commit | 4f0c06114b61c92d982baac1c54ed80da93a9cc9 (patch) | |
tree | fa949f1269931b4d62bddda23e26a5dcdff9ac14 /web/react/components/member_list_item.jsx | |
parent | b3fea25eddc332e9529692733093291b10d4aeef (diff) | |
parent | 570327463ca06c23b5b54b9ec93152535836f2c0 (diff) | |
download | chat-4f0c06114b61c92d982baac1c54ed80da93a9cc9.tar.gz chat-4f0c06114b61c92d982baac1c54ed80da93a9cc9.tar.bz2 chat-4f0c06114b61c92d982baac1c54ed80da93a9cc9.zip |
Merge pull request #591 from mattermost/mm-1909
MM-1909 Upgrading ESLint, turning on new rules, enabling some warnings, optimizations
Diffstat (limited to 'web/react/components/member_list_item.jsx')
-rw-r--r-- | web/react/components/member_list_item.jsx | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/web/react/components/member_list_item.jsx b/web/react/components/member_list_item.jsx index bfce0f49f..9a31a2e30 100644 --- a/web/react/components/member_list_item.jsx +++ b/web/react/components/member_list_item.jsx @@ -36,8 +36,10 @@ export default class MemberListItem extends React.Component { invite = ( <a onClick={this.handleInvite} - className='btn btn-sm btn-primary member-invite'> - <i className='glyphicon glyphicon-envelope'/> Add + className='btn btn-sm btn-primary member-invite' + > + <i className='glyphicon glyphicon-envelope'/> + {' Add'} </a> ); } else if (isAdmin && !isMemberAdmin && (member.id !== UserStore.getCurrentId())) { @@ -50,7 +52,9 @@ export default class MemberListItem extends React.Component { <a href='' role='menuitem' - onClick={self.handleMakeAdmin}>Make Admin + onClick={self.handleMakeAdmin} + > + Make Admin </a> </li>); } @@ -62,7 +66,9 @@ export default class MemberListItem extends React.Component { <a href='' role='menuitem' - onClick={self.handleRemove}>Remove Member + onClick={self.handleRemove} + > + Remove Member </a> </li>); } @@ -75,14 +81,16 @@ export default class MemberListItem extends React.Component { type='button' id='channel_header_dropdown' data-toggle='dropdown' - aria-expanded='true' > + aria-expanded='true' + > <span className='text-capitalize'>{member.roles || 'Member'} </span> <span className='caret'></span> </a> <ul className='dropdown-menu member-menu' role='menu' - aria-labelledby='channel_header_dropdown'> + aria-labelledby='channel_header_dropdown' + > {makeAdminOption} {handleRemoveOption} </ul> @@ -98,7 +106,8 @@ export default class MemberListItem extends React.Component { className='post-profile-img pull-left' src={'/api/v1/users/' + member.id + '/image?time=' + timestamp} height='36' - width='36' /> + width='36' + /> <span className='member-name'>{member.username}</span> <span className='member-email'>{member.email}</span> {invite} |