diff options
author | Brian Kim <brian@tagg.id> | 2021-05-19 17:26:40 -0700 |
---|---|---|
committer | Brian Kim <brian@tagg.id> | 2021-05-19 17:26:40 -0700 |
commit | 6e09b4245f3a96560ca0eb74d46e8fd40a164f44 (patch) | |
tree | 586c72d05e2a8d73012aa5c1497df371e5f8a43f /src/components/taggs | |
parent | 73cc07e1adce4ecea0f15bd651f8db2e510c9644 (diff) |
Fix redirect
Diffstat (limited to 'src/components/taggs')
-rw-r--r-- | src/components/taggs/TaggDraggable.tsx | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/components/taggs/TaggDraggable.tsx b/src/components/taggs/TaggDraggable.tsx index ac494a6b..06185bd1 100644 --- a/src/components/taggs/TaggDraggable.tsx +++ b/src/components/taggs/TaggDraggable.tsx @@ -79,19 +79,23 @@ const TaggDraggable: React.FC<TaggDraggableProps> = ( onLayout={(event) => console.log(event.nativeEvent.layout)}> <TouchableOpacity onPressIn={() => gotoTaggedProfile(taggedUser.userId)} - disabled={false} + disabled={redirect} style={[styles.button]} ref={draggableRef}> <TaggAvatar style={styles.avatar} screenType={ScreenType.Profile} editable={false} - userXId={undefined} + userXId={taggedUser.userId} /> <Text style={styles.buttonTitle}>@{taggedUser.username}</Text> - <TouchableOpacity disabled={false} onPressIn={() => deleteFromList()}> - <Image style={styles.imageX} source={uriX} /> - </TouchableOpacity> + {redirect && ( + <TouchableOpacity + disabled={false} + onPressIn={() => deleteFromList()}> + <Image style={styles.imageX} source={uriX} /> + </TouchableOpacity> + )} </TouchableOpacity> </View> </TouchableWithoutFeedback> |