Skip to content

Commit

Permalink
Merge pull request #20337 from dukenv0307/fix/20151
Browse files Browse the repository at this point in the history
fix: Add red border for admin in “Workspace > Members”
  • Loading branch information
roryabraham authored Jun 12, 2023
2 parents 8fe074e + 5428b78 commit a31e66d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/workspace/WorkspaceMembersPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,16 +319,16 @@ class WorkspaceMembersPage extends React.Component {
* @returns {React.Component}
*/
renderItem({item}) {
const hasError = !_.isEmpty(item.errors) || this.state.errors[item.login];
const isChecked = _.contains(this.state.selectedEmployees, item.login);
return (
<OfflineWithFeedback
errorRowStyles={[styles.peopleRowBorderBottom]}
onClose={() => this.dismissError(item)}
pendingAction={item.pendingAction}
errors={item.errors}
>
<PressableWithFeedback
style={[styles.peopleRow, (_.isEmpty(item.errors) || this.state.errors[item.login]) && styles.peopleRowBorderBottom]}
style={[styles.peopleRow, (_.isEmpty(item.errors) || this.state.errors[item.login]) && styles.peopleRowBorderBottom, hasError && styles.borderColorDanger]}
onPress={() => this.toggleUser(item.login, item.pendingAction)}
accessibilityRole="checkbox"
accessibilityState={{
Expand Down

0 comments on commit a31e66d

Please sign in to comment.