Add post deletion
This commit is contained in:
parent
bd1a4b198e
commit
41ae87e770
8 changed files with 114 additions and 9 deletions
|
@ -13,6 +13,8 @@ interface PostMetaOpts {
|
|||
authorHandle: string
|
||||
authorDisplayName: string | undefined
|
||||
timestamp: string
|
||||
isAuthor: boolean
|
||||
onDeletePost: () => void
|
||||
}
|
||||
|
||||
export function PostMeta(opts: PostMetaOpts) {
|
||||
|
@ -48,7 +50,9 @@ export function PostMeta(opts: PostMetaOpts) {
|
|||
<PostDropdownBtn
|
||||
style={styles.metaItem}
|
||||
itemHref={opts.itemHref}
|
||||
itemTitle={opts.itemTitle}>
|
||||
itemTitle={opts.itemTitle}
|
||||
isAuthor={opts.isAuthor}
|
||||
onDeletePost={opts.onDeletePost}>
|
||||
<FontAwesomeIcon icon="ellipsis-h" size={14} style={[s.mt2, s.mr5]} />
|
||||
</PostDropdownBtn>
|
||||
</View>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue