Skip to content

Commit

Permalink
rm showTooltipForLogin state
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Jan 17, 2023
1 parent d177feb commit be59dc3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/pages/workspace/WorkspaceMembersPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ class WorkspaceMembersPage extends React.Component {
this.state = {
selectedEmployees: [],
isRemoveMembersConfirmModalVisible: false,
showTooltipForLogin: '',
};

this.renderItem = this.renderItem.bind(this);
Expand Down Expand Up @@ -136,7 +135,6 @@ class WorkspaceMembersPage extends React.Component {
* Add or remove all users from the selectedEmployees list
*/
toggleAllUsers() {
this.setState({showTooltipForLogin: ''});
let policyMemberList = lodashGet(this.props, 'policyMemberList', {});
policyMemberList = _.filter(_.keys(policyMemberList), policyMember => policyMemberList[policyMember].pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE);
const removableMembers = _.without(policyMemberList, this.props.session.email, this.props.policy.owner);
Expand Down Expand Up @@ -165,8 +163,6 @@ class WorkspaceMembersPage extends React.Component {
} else {
this.addUser(login);
}

this.setState({showTooltipForLogin: ''});
}

/**
Expand Down Expand Up @@ -233,7 +229,6 @@ class WorkspaceMembersPage extends React.Component {
style={[styles.peopleRowCell]}
isChecked={_.contains(this.state.selectedEmployees, item.login)}
onPress={() => this.toggleUser(item.login, item.pendingAction)}
toggleTooltip={this.state.showTooltipForLogin === item.login}
text={this.props.translate('workspace.people.error.cannotRemove')}
/>
<View style={styles.flex1}>
Expand Down

0 comments on commit be59dc3

Please sign in to comment.