Bluesky app fork with some witchin' additions 💫

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

authored by

Eric Bailey and committed by
GitHub
7e6b23bd d2bc22e9

+16 -27
+16 -27
src/screens/Moderation/index.tsx
··· 328 328 </Link> 329 329 </View> 330 330 331 - {declaredAge === undefined && ( 331 + {(!isDeclaredUnderage || declaredAge === undefined) && ( 332 + <Text 333 + style={[ 334 + a.pt_2xl, 335 + a.pb_md, 336 + a.text_md, 337 + a.font_semi_bold, 338 + t.atoms.text_contrast_high, 339 + ]}> 340 + <Trans>Content filters</Trans> 341 + </Text> 342 + )} 343 + 344 + {declaredAge === undefined ? ( 332 345 <> 333 - <Text 334 - style={[ 335 - a.pt_2xl, 336 - a.pb_md, 337 - a.text_md, 338 - a.font_semi_bold, 339 - t.atoms.text_contrast_high, 340 - ]}> 341 - <Trans>Content filters</Trans> 342 - </Text> 343 - 344 346 <Button 345 347 label={_(msg`Confirm your birthdate`)} 346 348 size="small" ··· 360 362 361 363 <BirthDateSettingsDialog control={birthdateDialogControl} /> 362 364 </> 363 - )} 364 - 365 - {!isDeclaredUnderage && ( 365 + ) : !isDeclaredUnderage ? ( 366 366 <> 367 - <Text 368 - style={[ 369 - a.pt_2xl, 370 - a.pb_md, 371 - a.text_md, 372 - a.font_semi_bold, 373 - t.atoms.text_contrast_high, 374 - ]}> 375 - <Trans>Content filters</Trans> 376 - </Text> 377 - 378 367 <AgeAssuranceAdmonition style={[a.pb_md]}> 379 368 <Trans> 380 369 You must complete age assurance in order to access the settings ··· 466 455 </View> 467 456 </View> 468 457 </> 469 - )} 458 + ) : null} 470 459 471 460 <Text 472 461 style={[