Move menu controls into post footers and improve meta info rendering

This commit is contained in:
Paul Frazee 2023-01-16 16:09:51 -06:00
parent 0e85b33276
commit 7f8f53b087
5 changed files with 58 additions and 53 deletions

View file

@ -177,15 +177,10 @@ export const FeedItem = observer(function ({
</View>
<View style={styles.layoutContent}>
<PostMeta
itemHref={itemHref}
itemTitle={itemTitle}
authorHref={authorHref}
authorHandle={item.post.author.handle}
authorDisplayName={item.post.author.displayName}
timestamp={item.post.indexedAt}
isAuthor={item.post.author.did === store.me.did}
onCopyPostText={onCopyPostText}
onDeletePost={onDeletePost}
/>
{!isChild && replyHref !== '' && (
<View style={[s.flexRow, s.mb2, {alignItems: 'center'}]}>
@ -226,6 +221,9 @@ export const FeedItem = observer(function ({
)}
<PostEmbeds embed={item.post.embed} style={styles.postEmbeds} />
<PostCtrls
itemHref={itemHref}
itemTitle={itemTitle}
isAuthor={item.post.author.did === store.me.did}
replyCount={item.post.replyCount}
repostCount={item.post.repostCount}
upvoteCount={item.post.upvoteCount}
@ -234,6 +232,8 @@ export const FeedItem = observer(function ({
onPressReply={onPressReply}
onPressToggleRepost={onPressToggleRepost}
onPressToggleUpvote={onPressToggleUpvote}
onCopyPostText={onCopyPostText}
onDeletePost={onDeletePost}
/>
</View>
</View>