From b5ecbf3e421e9e6f1dbab9f3f851d265ae8470c6 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Mon, 14 Dec 2020 19:22:35 -0500 Subject: [TMA-406&201] User Handle UI for Individual Moments (#129) * initial work * made big progress towards flatlist moment view * UI done, just need to pass in data now * minor fixes to get things actually running correctly * vertical scroll working * initial index working * moment drawer text color to red * moved report to drawer * removed garbage * added ? --- src/components/comments/CommentsCount.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/components/comments') diff --git a/src/components/comments/CommentsCount.tsx b/src/components/comments/CommentsCount.tsx index d210c39a..325e2788 100644 --- a/src/components/comments/CommentsCount.tsx +++ b/src/components/comments/CommentsCount.tsx @@ -1,8 +1,8 @@ +import {useNavigation} from '@react-navigation/native'; import * as React from 'react'; -import {Text} from 'react-native-animatable'; import {StyleSheet, TouchableOpacity} from 'react-native'; +import {Text} from 'react-native-animatable'; import CommentIcon from '../../assets/icons/moment-comment-icon.svg'; -import {useNavigation} from '@react-navigation/native'; import {ScreenType} from '../../types'; /** @@ -11,20 +11,20 @@ import {ScreenType} from '../../types'; */ type CommentsCountProps = { - comments_count: string; - moment_id: string; + commentsCount: string; + momentId: string; screenType: ScreenType; }; const CommentsCount: React.FC = ({ - comments_count, - moment_id, + commentsCount, + momentId, screenType, }) => { const navigation = useNavigation(); const navigateToCommentsScreen = async () => { navigation.push('MomentCommentsScreen', { - moment_id, + moment_id: momentId, screenType, }); }; @@ -33,7 +33,7 @@ const CommentsCount: React.FC = ({ navigateToCommentsScreen()}> - {comments_count !== '0' ? comments_count : ''} + {commentsCount !== '0' ? commentsCount : ''} -- cgit v1.2.3-70-g09d2