From 4b22c1f99cb05be5ca187f2fd70ee2664c34de57 Mon Sep 17 00:00:00 2001
From: Christopher Speller <crspeller@gmail.com>
Date: Thu, 3 Sep 2015 10:49:36 -0400
Subject: Upgrading ESLint and adding some more rules. Refactoring to meet
 these new rules

---
 web/react/components/member_list_item.jsx | 23 ++++++++++++++++-------
 1 file changed, 16 insertions(+), 7 deletions(-)

(limited to 'web/react/components/member_list_item.jsx')

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}
-- 
cgit v1.2.3-1-g7c22

