PostDropdownBtn
This commit is contained in:
@@ -35,7 +35,7 @@ export function PostDropdownBtn({
|
|||||||
record: AppBskyFeedPost.Record
|
record: AppBskyFeedPost.Record
|
||||||
style?: StyleProp<ViewStyle>
|
style?: StyleProp<ViewStyle>
|
||||||
}) {
|
}) {
|
||||||
const {currentAccount} = useSession()
|
const {hasSession, currentAccount} = useSession()
|
||||||
const theme = useTheme()
|
const theme = useTheme()
|
||||||
const {_} = useLingui()
|
const {_} = useLingui()
|
||||||
const defaultCtrlColor = theme.palette.default.postCtrl
|
const defaultCtrlColor = theme.palette.default.postCtrl
|
||||||
@@ -136,10 +136,10 @@ export function PostDropdownBtn({
|
|||||||
web: 'share',
|
web: 'share',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
hasSession && {
|
||||||
label: 'separator',
|
label: 'separator',
|
||||||
},
|
},
|
||||||
{
|
hasSession && {
|
||||||
label: isThreadMuted ? _(msg`Unmute thread`) : _(msg`Mute thread`),
|
label: isThreadMuted ? _(msg`Unmute thread`) : _(msg`Mute thread`),
|
||||||
onPress() {
|
onPress() {
|
||||||
onToggleThreadMute()
|
onToggleThreadMute()
|
||||||
@@ -153,27 +153,28 @@ export function PostDropdownBtn({
|
|||||||
web: 'comment-slash',
|
web: 'comment-slash',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
hasSession && {
|
||||||
label: 'separator',
|
label: 'separator',
|
||||||
},
|
},
|
||||||
!isAuthor && {
|
!isAuthor &&
|
||||||
label: _(msg`Report post`),
|
hasSession && {
|
||||||
onPress() {
|
label: _(msg`Report post`),
|
||||||
openModal({
|
onPress() {
|
||||||
name: 'report',
|
openModal({
|
||||||
uri: post.uri,
|
name: 'report',
|
||||||
cid: post.cid,
|
uri: post.uri,
|
||||||
})
|
cid: post.cid,
|
||||||
},
|
})
|
||||||
testID: 'postDropdownReportBtn',
|
},
|
||||||
icon: {
|
testID: 'postDropdownReportBtn',
|
||||||
ios: {
|
icon: {
|
||||||
name: 'exclamationmark.triangle',
|
ios: {
|
||||||
|
name: 'exclamationmark.triangle',
|
||||||
|
},
|
||||||
|
android: 'ic_menu_report_image',
|
||||||
|
web: 'circle-exclamation',
|
||||||
},
|
},
|
||||||
android: 'ic_menu_report_image',
|
|
||||||
web: 'circle-exclamation',
|
|
||||||
},
|
},
|
||||||
},
|
|
||||||
isAuthor && {
|
isAuthor && {
|
||||||
label: 'separator',
|
label: 'separator',
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user