Skip to content

Commit

Permalink
hide pwioptout in old location
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzius committed Oct 16, 2024
1 parent 3610e62 commit 6a083ca
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions src/screens/Moderation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {useFocusEffect} from '@react-navigation/native'

import {getLabelingServiceTitle} from '#/lib/moderation'
import {CommonNavigatorParams, NativeStackScreenProps} from '#/lib/routes/types'
import {useGate} from '#/lib/statsig/statsig'
import {logger} from '#/logger'
import {isIOS} from '#/platform/detection'
import {
Expand Down Expand Up @@ -173,6 +174,7 @@ export function ModerationScreenInner({
data: labelers,
error: labelersError,
} = useMyLabelersQuery()
const gate = useGate()

useFocusEffect(
React.useCallback(() => {
Expand Down Expand Up @@ -469,18 +471,22 @@ export function ModerationScreenInner({
</View>
)}

<Text
style={[
a.text_md,
a.font_bold,
a.pt_2xl,
a.pb_md,
t.atoms.text_contrast_high,
]}>
<Trans>Logged-out visibility</Trans>
</Text>
{!gate('new_settings') && (
<>
<Text
style={[
a.text_md,
a.font_bold,
a.pt_2xl,
a.pb_md,
t.atoms.text_contrast_high,
]}>
<Trans>Logged-out visibility</Trans>
</Text>

<PwiOptOut />
<PwiOptOut />
</>
)}

<View style={{height: 200}} />
</ScrollView>
Expand Down

0 comments on commit 6a083ca

Please sign in to comment.