Remove report post option from PWI (#3510)

zio/stable
Paul Frazee 2024-04-12 14:43:55 -07:00 committed by GitHub
parent ec5c4929c1
commit 4fab3c42f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 25 additions and 21 deletions

View File

@ -283,29 +283,33 @@ let PostDropdownBtn = ({
</> </>
)} )}
<Menu.Divider /> {hasSession && (
<>
<Menu.Divider />
<Menu.Group> <Menu.Group>
{!isAuthor && ( {!isAuthor && (
<Menu.Item <Menu.Item
testID="postDropdownReportBtn" testID="postDropdownReportBtn"
label={_(msg`Report post`)} label={_(msg`Report post`)}
onPress={() => reportDialogControl.open()}> onPress={() => reportDialogControl.open()}>
<Menu.ItemText>{_(msg`Report post`)}</Menu.ItemText> <Menu.ItemText>{_(msg`Report post`)}</Menu.ItemText>
<Menu.ItemIcon icon={Warning} position="right" /> <Menu.ItemIcon icon={Warning} position="right" />
</Menu.Item> </Menu.Item>
)} )}
{isAuthor && ( {isAuthor && (
<Menu.Item <Menu.Item
testID="postDropdownDeleteBtn" testID="postDropdownDeleteBtn"
label={_(msg`Delete post`)} label={_(msg`Delete post`)}
onPress={deletePromptControl.open}> onPress={deletePromptControl.open}>
<Menu.ItemText>{_(msg`Delete post`)}</Menu.ItemText> <Menu.ItemText>{_(msg`Delete post`)}</Menu.ItemText>
<Menu.ItemIcon icon={Trash} position="right" /> <Menu.ItemIcon icon={Trash} position="right" />
</Menu.Item> </Menu.Item>
)} )}
</Menu.Group> </Menu.Group>
</>
)}
</Menu.Outer> </Menu.Outer>
</Menu.Root> </Menu.Root>