No need to disable exposures

This commit is contained in:
Dan Abramov
2024-12-16 22:15:04 +00:00
parent 653eee9f07
commit 0c1f35e242
3 changed files with 35 additions and 49 deletions
+28 -32
View File
@@ -86,38 +86,34 @@ export function AppIconSettingsScreen({}: Props) {
))}
</Group>
{IS_INTERNAL &&
gate('debug_subscriptions', {
// Employee only
dangerouslyDisableExposureLogging: true,
}) && (
<>
<Text
style={[
a.text_md,
a.mt_xl,
a.mb_sm,
a.font_bold,
t.atoms.text_contrast_medium,
]}>
<Trans>Bluesky+</Trans>
</Text>
<Group
label={_(msg`Bluesky+ icons`)}
value={currentAppIcon}
onChange={onSetAppIcon}>
{sets.core.map((icon, i) => (
<Row
key={icon.id}
icon={icon}
isEnd={i === sets.core.length - 1}>
<AppIcon icon={icon} key={icon.id} size={40} />
<RowText>{icon.name}</RowText>
</Row>
))}
</Group>
</>
)}
{IS_INTERNAL && gate('debug_subscriptions') && (
<>
<Text
style={[
a.text_md,
a.mt_xl,
a.mb_sm,
a.font_bold,
t.atoms.text_contrast_medium,
]}>
<Trans>Bluesky+</Trans>
</Text>
<Group
label={_(msg`Bluesky+ icons`)}
value={currentAppIcon}
onChange={onSetAppIcon}>
{sets.core.map((icon, i) => (
<Row
key={icon.id}
icon={icon}
isEnd={i === sets.core.length - 1}>
<AppIcon icon={icon} key={icon.id} size={40} />
<RowText>{icon.name}</RowText>
</Row>
))}
</Group>
</>
)}
</Layout.Content>
</Layout.Screen>
)
+6 -11
View File
@@ -177,17 +177,12 @@ export function AppearanceSettingsScreen({}: Props) {
onChange={onChangeFontScale}
/>
{isNative &&
IS_INTERNAL &&
gate('debug_subscriptions', {
// Employee only
dangerouslyDisableExposureLogging: true,
}) && (
<>
<SettingsList.Divider />
<AppIconSettingsListItem />
</>
)}
{isNative && IS_INTERNAL && gate('debug_subscriptions') && (
<>
<SettingsList.Divider />
<AppIconSettingsListItem />
</>
)}
</Animated.View>
</SettingsList.Container>
</Layout.Content>
+1 -6
View File
@@ -87,12 +87,7 @@ let PostCtrls = ({
const {captureAction} = useProgressGuideControls()
const playHaptic = useHaptics()
const gate = useGate()
const isDiscoverDebugUser =
IS_INTERNAL ||
gate('debug_show_feedcontext', {
// Employee only
dangerouslyDisableExposureLogging: true,
})
const isDiscoverDebugUser = IS_INTERNAL || gate('debug_show_feedcontext')
const isBlocked = Boolean(
post.author.viewer?.blocking ||
post.author.viewer?.blockedBy ||