show misclass button by the same logic as feedContext (#8445)
This commit is contained in:
@@ -26,7 +26,7 @@ import {
|
|||||||
type CommonNavigatorParams,
|
type CommonNavigatorParams,
|
||||||
type NavigationProp,
|
type NavigationProp,
|
||||||
} from '#/lib/routes/types'
|
} from '#/lib/routes/types'
|
||||||
import {logEvent} from '#/lib/statsig/statsig'
|
import {logEvent, useGate} from '#/lib/statsig/statsig'
|
||||||
import {richTextToString} from '#/lib/strings/rich-text-helpers'
|
import {richTextToString} from '#/lib/strings/rich-text-helpers'
|
||||||
import {toShareUrl} from '#/lib/strings/url-helpers'
|
import {toShareUrl} from '#/lib/strings/url-helpers'
|
||||||
import {getTranslatorLink} from '#/locale/helpers'
|
import {getTranslatorLink} from '#/locale/helpers'
|
||||||
@@ -397,6 +397,12 @@ let PostMenuItems = ({
|
|||||||
openLink(url)
|
openLink(url)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const gate = useGate()
|
||||||
|
const isDiscoverDebugUser =
|
||||||
|
IS_INTERNAL ||
|
||||||
|
DISCOVER_DEBUG_DIDS[currentAccount?.did || ''] ||
|
||||||
|
gate('debug_show_feedcontext')
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Menu.Outer>
|
<Menu.Outer>
|
||||||
@@ -472,9 +478,7 @@ let PostMenuItems = ({
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{hasSession &&
|
{isDiscoverDebugUser && (
|
||||||
IS_INTERNAL &&
|
|
||||||
DISCOVER_DEBUG_DIDS[currentAccount?.did ?? ''] && (
|
|
||||||
<Menu.Item
|
<Menu.Item
|
||||||
testID="postDropdownReportMisclassificationBtn"
|
testID="postDropdownReportMisclassificationBtn"
|
||||||
label={_(msg`Assign topic for algo`)}
|
label={_(msg`Assign topic for algo`)}
|
||||||
|
|||||||
Reference in New Issue
Block a user