Add 'copy post text' tool
This commit is contained in:
parent
73c84f6f64
commit
bbe6bf8fc2
6 changed files with 32 additions and 0 deletions
|
@ -79,6 +79,7 @@ export function PostDropdownBtn({
|
|||
itemHref,
|
||||
itemTitle,
|
||||
isAuthor,
|
||||
onCopyPostText,
|
||||
onDeletePost,
|
||||
}: {
|
||||
style?: StyleProp<ViewStyle>
|
||||
|
@ -86,6 +87,7 @@ export function PostDropdownBtn({
|
|||
itemHref: string
|
||||
itemTitle: string
|
||||
isAuthor: boolean
|
||||
onCopyPostText: () => void
|
||||
onDeletePost: () => void
|
||||
}) {
|
||||
const store = useStores()
|
||||
|
@ -100,6 +102,13 @@ export function PostDropdownBtn({
|
|||
},
|
||||
}
|
||||
: undefined,
|
||||
{
|
||||
icon: ['far', 'paste'],
|
||||
label: 'Copy post text',
|
||||
onPress() {
|
||||
onCopyPostText()
|
||||
},
|
||||
},
|
||||
{
|
||||
icon: 'share',
|
||||
label: 'Share...',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue