Add WIP 'report post' modal

This commit is contained in:
Paul Frazee 2022-12-18 17:28:28 -06:00
parent 36dc1c7525
commit 66a0f8e848
7 changed files with 211 additions and 2 deletions

View file

@ -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'],