Skip to content

Commit

Permalink
Merge pull request #1864 from ever-co/bug/team-screen-card-option-but…
Browse files Browse the repository at this point in the history
…ton-conditional

Conditionally rendering options icon in team member cards
  • Loading branch information
evereq authored Nov 23, 2023
2 parents 8e3524e + b329f26 commit d1311ee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ const ListCardItem: React.FC<Props> = observer((props) => {
>
<Ionicons name="chevron-back" size={24} color={colors.primary} />
</TouchableOpacity>
) : (
) : memberInfo.isAuthTeamManager || memberInfo.isAuthUser ? (
<TouchableOpacity
onPress={() =>
props.setOpenMenuIndex(props.openMenuIndex === props.index ? null : props.index)
Expand All @@ -310,7 +310,7 @@ const ListCardItem: React.FC<Props> = observer((props) => {
<Entypo name="cross" size={24} color={colors.primary} />
)}
</TouchableOpacity>
)}
) : null}
</View>
</View>
}
Expand Down

0 comments on commit d1311ee

Please sign in to comment.