Fix ternary in moderation settings that caused a double title (#9198)

This commit is contained in:
Eric Bailey
2025-10-14 09:17:34 -05:00
committed by GitHub
parent d2bc22e9be
commit 7e6b23bd86
+16 -27
View File
@@ -328,19 +328,21 @@ export function ModerationScreenInner({
</Link>
</View>
{declaredAge === undefined && (
<>
<Text
style={[
a.pt_2xl,
a.pb_md,
a.text_md,
a.font_semi_bold,
t.atoms.text_contrast_high,
]}>
<Trans>Content filters</Trans>
</Text>
{(!isDeclaredUnderage || declaredAge === undefined) && (
<Text
style={[
a.pt_2xl,
a.pb_md,
a.text_md,
a.font_semi_bold,
t.atoms.text_contrast_high,
]}>
<Trans>Content filters</Trans>
</Text>
)}
{declaredAge === undefined ? (
<>
<Button
label={_(msg`Confirm your birthdate`)}
size="small"
@@ -360,21 +362,8 @@ export function ModerationScreenInner({
<BirthDateSettingsDialog control={birthdateDialogControl} />
</>
)}
{!isDeclaredUnderage && (
) : !isDeclaredUnderage ? (
<>
<Text
style={[
a.pt_2xl,
a.pb_md,
a.text_md,
a.font_semi_bold,
t.atoms.text_contrast_high,
]}>
<Trans>Content filters</Trans>
</Text>
<AgeAssuranceAdmonition style={[a.pb_md]}>
<Trans>
You must complete age assurance in order to access the settings
@@ -466,7 +455,7 @@ export function ModerationScreenInner({
</View>
</View>
</>
)}
) : null}
<Text
style={[