From a19514a3916a2dc2eab28a085866b34f2e9f2bc6 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Fri, 7 May 2021 15:24:21 -0400 Subject: styled comment --- src/components/comments/CommentTile.tsx | 76 +++++++++++++++++++-------------- 1 file changed, 43 insertions(+), 33 deletions(-) (limited to 'src') diff --git a/src/components/comments/CommentTile.tsx b/src/components/comments/CommentTile.tsx index cf79b68c..f793cdbe 100644 --- a/src/components/comments/CommentTile.tsx +++ b/src/components/comments/CommentTile.tsx @@ -160,33 +160,42 @@ const CommentTile: React.FC = ({ onPress: (user: UserType) => navigateToProfile(state, dispatch, navigation, screenType, user), })} - - - {' ' + timePosted} - + + + + {' ' + timePosted} + + + 5 + Likes + + {/* Show replies text only if there are some replies present */} + {!isThread && (commentObject as CommentType).replies_count > 0 ? ( + + + {getRepliesText(commentObject as CommentType)} + + + + ) : ( + // empty view for justify content's space-between + + )} - {/*** Show replies text only if there are some replies present */} - {!isThread && (commentObject as CommentType).replies_count > 0 && ( - - - {getRepliesText(commentObject as CommentType)} - - - - )} - - {/*** Show replies if toggle state is true */} + {/* Show replies if toggle state is true */} {showReplies && (