From 73cc07e1adce4ecea0f15bd651f8db2e510c9644 Mon Sep 17 00:00:00 2001 From: George Rusu Date: Wed, 19 May 2021 16:55:04 -0700 Subject: Add delte from list, need to add rediret to profile --- src/components/taggs/TaggDraggable.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/components/taggs') diff --git a/src/components/taggs/TaggDraggable.tsx b/src/components/taggs/TaggDraggable.tsx index 0d57c590..ac494a6b 100644 --- a/src/components/taggs/TaggDraggable.tsx +++ b/src/components/taggs/TaggDraggable.tsx @@ -35,6 +35,15 @@ const TaggDraggable: React.FC = ( const dispatch = useDispatch(); const navigation = useNavigation(); const state: RootState = useStore().getState(); + + const gotoTaggedProfile = (userID: string) => { + //Since the logged In User is navigating to own profile, useXId is not required + navigation.navigate('Profile', { + ScreenType, + userXId: userID, + }); + }; + const { draggable, minX, @@ -69,7 +78,8 @@ const TaggDraggable: React.FC = ( style={styles.container} onLayout={(event) => console.log(event.nativeEvent.layout)}> gotoTaggedProfile(taggedUser.userId)} + disabled={false} style={[styles.button]} ref={draggableRef}> = ( userXId={undefined} /> @{taggedUser.username} - + deleteFromList()}> -- cgit v1.2.3-70-g09d2