Remove report post option from PWI (#3510)
parent
ec5c4929c1
commit
4fab3c42f9
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue