Skip to content

Commit

Permalink
rm comment and create validate
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Jan 17, 2023
1 parent b6d28d3 commit d31d4be
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/pages/workspace/WorkspaceMembersPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,6 @@ class WorkspaceMembersPage extends React.Component {
renderItem({
item,
}) {
// const canBeRemoved = this.props.policy.owner !== item.login && this.props.session.email !== item.login && item.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE;
// const canBeRemoved = this.props.policy.owner !== login && this.props.session.email !== login;
return (
<OfflineWithFeedback errorRowStyles={[styles.peopleRowBorderBottom]} onClose={() => this.dismissError(item)} pendingAction={item.pendingAction} errors={item.errors}>
<TouchableOpacity
Expand Down Expand Up @@ -252,6 +250,13 @@ class WorkspaceMembersPage extends React.Component {
);
}

validate() {
_.each(this.state.selectedEmployees, member => {
if (member)
});
// this.props.policy.owner !== item.login && this.props.session.email !== item.login && item.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE;
}

render() {
const policyMemberList = lodashGet(this.props, 'policyMemberList', {});
let data = [];
Expand Down

0 comments on commit d31d4be

Please sign in to comment.