Skip to content

Commit

Permalink
conditionally rendering options icon in team member cards
Browse files Browse the repository at this point in the history
  • Loading branch information
desperado1802 committed Nov 23, 2023
1 parent 8e3524e commit b329f26
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 b329f26

Please sign in to comment.