aboutsummaryrefslogtreecommitdiff
path: root/src/components/moments/MomentPostContent.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-06-08 16:52:05 -0400
committerIvan Chen <ivan@tagg.id>2021-06-08 16:52:05 -0400
commit6837eac533bdf39013bde22ab8df2eb687a06a2e (patch)
tree304cd93c85755149825244245ea40d69c4e0e5d8 /src/components/moments/MomentPostContent.tsx
parent7de499af625b28074e86854b997e66257ffab8c8 (diff)
Move things around, Add logic to disable button
Diffstat (limited to 'src/components/moments/MomentPostContent.tsx')
-rw-r--r--src/components/moments/MomentPostContent.tsx16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/components/moments/MomentPostContent.tsx b/src/components/moments/MomentPostContent.tsx
index e76a8ceb..582cba25 100644
--- a/src/components/moments/MomentPostContent.tsx
+++ b/src/components/moments/MomentPostContent.tsx
@@ -88,14 +88,6 @@ const MomentPostContent: React.FC<MomentPostContentProps> = ({
/>
</Animated.View>
)}
- <View style={styles.footerContainer}>
- <CommentsCount
- commentsCount={moment.comments_count.toString()}
- momentId={moment.moment_id}
- screenType={screenType}
- />
- <Text style={styles.text}>{elapsedTime}</Text>
- </View>
{moment.caption !== '' &&
renderTextWithMentions({
value: moment.caption,
@@ -104,6 +96,14 @@ const MomentPostContent: React.FC<MomentPostContentProps> = ({
onPress: (user: UserType) =>
navigateToProfile(state, dispatch, navigation, screenType, user),
})}
+ <View style={styles.footerContainer}>
+ <CommentsCount
+ commentsCount={moment.comments_count.toString()}
+ momentId={moment.moment_id}
+ screenType={screenType}
+ />
+ <Text style={styles.text}>{elapsedTime}</Text>
+ </View>
<AddComment
placeholderText={'Add a comment here!'}
momentId={moment.moment_id}