From bf2cf14f47381fcf699e26edf6acf47ed91e462c Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Thu, 27 May 2021 14:38:54 -0400 Subject: Fix build issues --- src/components/moments/MomentPostContent.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/components/moments/MomentPostContent.tsx b/src/components/moments/MomentPostContent.tsx index f485396f..4a1f3894 100644 --- a/src/components/moments/MomentPostContent.tsx +++ b/src/components/moments/MomentPostContent.tsx @@ -35,15 +35,13 @@ const MomentPostContent: React.FC = ({ style, momentTags, }) => { - const [elapsedTime, setElapsedTime] = useState(''); - const [comments_count, setCommentsCount] = useState(''); - const [tags, setTags] = useState(momentTags); - const [visible, setVisible] = useState(false); const state: RootState = useStore().getState(); const navigation = useNavigation(); const dispatch = useDispatch(); + const [elapsedTime, setElapsedTime] = useState(''); + const [comments_count, setCommentsCount] = useState(''); + const [tags, setTags] = useState(momentTags); const imageRef = useRef(null); - const [fadeValue, setFadeValue] = useState(new Animated.Value(0)); const [visible, setVisible] = useState(false); const [fadeValue, setFadeValue] = useState>( -- cgit v1.2.3-70-g09d2 From 5a1449b661293e3148ace5e515b408c72120bfed Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Thu, 27 May 2021 14:58:29 -0400 Subject: Fix strings --- src/components/moments/TagFriendsFoooter.tsx | 2 +- src/screens/moments/TagFriendsScreen.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/components/moments/TagFriendsFoooter.tsx b/src/components/moments/TagFriendsFoooter.tsx index 365d709d..753b4486 100644 --- a/src/components/moments/TagFriendsFoooter.tsx +++ b/src/components/moments/TagFriendsFoooter.tsx @@ -38,7 +38,7 @@ const TagFriendsFooter: React.FC = ({tags, setTags}) => { source={require('../../assets/icons/tagging/white-plus-icon.png')} style={styles.tagMoreIcon} /> - {'Tagg More'} + {'Tag More'} ), [tags], diff --git a/src/screens/moments/TagFriendsScreen.tsx b/src/screens/moments/TagFriendsScreen.tsx index d960f3b9..f2c69e32 100644 --- a/src/screens/moments/TagFriendsScreen.tsx +++ b/src/screens/moments/TagFriendsScreen.tsx @@ -74,7 +74,7 @@ const TagFriendsScreen: React.FC = ({route}) => { 0} -- cgit v1.2.3-70-g09d2 From a78d7000e47243d7927f772feb8f81260c495f86 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Thu, 27 May 2021 14:58:56 -0400 Subject: Send correct route params, Allow tap to tag --- src/screens/moments/TagFriendsScreen.tsx | 3 +-- src/screens/moments/TagSelectionScreen.tsx | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/screens/moments/TagFriendsScreen.tsx b/src/screens/moments/TagFriendsScreen.tsx index f2c69e32..c8bca9f4 100644 --- a/src/screens/moments/TagFriendsScreen.tsx +++ b/src/screens/moments/TagFriendsScreen.tsx @@ -77,10 +77,9 @@ const TagFriendsScreen: React.FC = ({route}) => { title={'Tap on photo to tag friends!'} /> 0} onPress={() => navigation.navigate('TagSelectionScreen', { - selectedUsers: [], + selectedTags: tags, }) }> = ({route}) => { const navigation = useNavigation(); + const {selectedTags} = route.params; const [users, setUsers] = useState([]); - const [tags, setTags] = useState(route.params.selectedTags); + const [tags, setTags] = useState(selectedTags); const [searching, setSearching] = useState(false); const [query, setQuery] = useState(''); const [label, setLabel] = useState('Recent'); -- cgit v1.2.3-70-g09d2