Add WIP 'report post' modal
This commit is contained in:
parent
36dc1c7525
commit
66a0f8e848
7 changed files with 211 additions and 2 deletions
|
@ -15,7 +15,7 @@ import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
|
|||
import {colors} from '../../lib/styles'
|
||||
import {toShareUrl} from '../../../lib/strings'
|
||||
import {useStores} from '../../../state'
|
||||
import {ConfirmModal} from '../../../state/models/shell-ui'
|
||||
import {ReportPostModal, ConfirmModal} from '../../../state/models/shell-ui'
|
||||
import {TABS_ENABLED} from '../../../build-flags'
|
||||
|
||||
const HITSLOP = {left: 10, top: 10, right: 10, bottom: 10}
|
||||
|
@ -116,6 +116,13 @@ export function PostDropdownBtn({
|
|||
Share.share({url: toShareUrl(itemHref)})
|
||||
},
|
||||
},
|
||||
{
|
||||
icon: 'circle-exclamation',
|
||||
label: 'Report post',
|
||||
onPress() {
|
||||
store.shell.openModal(new ReportPostModal(itemHref))
|
||||
},
|
||||
},
|
||||
isAuthor
|
||||
? {
|
||||
icon: ['far', 'trash-can'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue