aboutsummaryrefslogtreecommitdiff
path: root/src/components/moments/MomentPost.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-06-09 19:28:55 -0400
committerGitHub <noreply@github.com>2021-06-09 19:28:55 -0400
commit117996a44ffdb7c9c517ab58ad8ea5cbe0dd01f1 (patch)
tree40daf3e5ba9b6930b163d544be4a86f3afaa377a /src/components/moments/MomentPost.tsx
parentd13d12980555cb1f659ae5108c52f089a54c3f57 (diff)
parentba55d9a29aae0fea3c5a7e4cb0cc9140c7d0fe31 (diff)
Merge pull request #458 from shravyaramesh/tma907-edit-moments
[TMA-907] Edit Moment
Diffstat (limited to 'src/components/moments/MomentPost.tsx')
-rw-r--r--src/components/moments/MomentPost.tsx8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/components/moments/MomentPost.tsx b/src/components/moments/MomentPost.tsx
index 7149a5b4..e744fcd9 100644
--- a/src/components/moments/MomentPost.tsx
+++ b/src/components/moments/MomentPost.tsx
@@ -76,18 +76,16 @@ const MomentPost: React.FC<MomentPostProps> = ({item, userXId, screenType}) => {
userXId={userXId}
screenType={screenType}
username={isOwnProfile ? loggedInUsername : username}
- momentId={item.moment_id}
style={styles.postHeader}
momentTagId={momentTagId}
removeTag={removeTag}
+ moment={item}
+ tags={tags}
/>
<MomentPostContent
style={styles.postContent}
- momentId={item.moment_id}
- caption={item.caption}
- pathHash={item.moment_url}
- dateTime={item.date_created}
screenType={screenType}
+ moment={item}
momentTags={tags}
/>
</View>