From 002015e9943ab34d7690babf0fdd24e16b62cf17 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Mon, 24 May 2021 16:30:45 -0400 Subject: Reorganize components in TaggDraggable --- src/components/taggs/TaggDraggable.tsx | 37 +++++++++++++++++----------------- 1 file changed, 18 insertions(+), 19 deletions(-) (limited to 'src/components/taggs') diff --git a/src/components/taggs/TaggDraggable.tsx b/src/components/taggs/TaggDraggable.tsx index e4448642..55f8162b 100644 --- a/src/components/taggs/TaggDraggable.tsx +++ b/src/components/taggs/TaggDraggable.tsx @@ -47,10 +47,11 @@ const TaggDraggable: React.FC = ( return ( - - + + style={styles.container} + disabled={editingView} + onPress={() => navigateToProfile( state, dispatch, @@ -58,22 +59,20 @@ const TaggDraggable: React.FC = ( ScreenType.Profile, user, ) - } - disabled={editingView} - style={styles.content} - ref={draggableRef}> - - - @{taggedUser.username} - - {editingView && ( - - - - )} + }> + + + + + @{taggedUser.username} + + {editingView && ( + + + + )} + -- cgit v1.2.3-70-g09d2