From 3c3a5ab63ce05d9212d222584e23d5a5005c139b Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Fri, 16 Jul 2021 14:43:52 -0400 Subject: Hide tags during upload --- src/screens/moments/TagFriendsScreen.tsx | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) (limited to 'src/screens') diff --git a/src/screens/moments/TagFriendsScreen.tsx b/src/screens/moments/TagFriendsScreen.tsx index fc3bccf2..d11f8049 100644 --- a/src/screens/moments/TagFriendsScreen.tsx +++ b/src/screens/moments/TagFriendsScreen.tsx @@ -188,13 +188,17 @@ const TagFriendsScreen: React.FC = ({route}) => { /> - - {tags.length === 0 ? ( - Tap on photo to tag friends! - ) : ( - Press and drag to move - )} - + {!media.isVideo ? ( + + {tags.length === 0 ? ( + Tap on photo to tag friends! + ) : ( + Press and drag to move + )} + + ) : ( + + )} = ({route}) => { - {tags.length !== 0 && ( + {tags.length !== 0 && !media.isVideo && ( Date: Fri, 16 Jul 2021 15:11:35 -0400 Subject: Change positions to 0 if video --- src/screens/profile/CaptionScreen.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/screens') diff --git a/src/screens/profile/CaptionScreen.tsx b/src/screens/profile/CaptionScreen.tsx index 6bcf0e24..d07743ad 100644 --- a/src/screens/profile/CaptionScreen.tsx +++ b/src/screens/profile/CaptionScreen.tsx @@ -153,9 +153,9 @@ const CaptionScreen: React.FC = ({route, navigation}) => { const formattedTags = () => { return tags.map((tag) => ({ - x: tag.x, - y: tag.y, - z: tag.z, + x: isMediaAVideo ? 0 : tag.x, + y: isMediaAVideo ? 0 : tag.y, + z: isMediaAVideo ? 0 : tag.z, user_id: tag.user.id, })); }; -- cgit v1.2.3-70-g09d2