Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add underage notice to Moderation screen (#8868)

* Add underage notice to Moderation screen

* Incorporate suggestion

Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>

---------

Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>

authored by

Eric Bailey
surfdude29
and committed by
GitHub
92ad887e 122a4689

+19
+19
src/screens/Moderation/index.tsx
··· 22 22 import {isNonConfigurableModerationAuthority} from '#/state/session/additional-moderation-authorities' 23 23 import {useSetMinimalShellMode} from '#/state/shell' 24 24 import {atoms as a, useBreakpoints, useTheme, type ViewStyleProp} from '#/alf' 25 + import {Admonition} from '#/components/Admonition' 25 26 import {AgeAssuranceAdmonition} from '#/components/ageAssurance/AgeAssuranceAdmonition' 26 27 import {Button, ButtonText} from '#/components/Button' 27 28 import * as Dialog from '#/components/Dialog' ··· 201 202 202 203 return ( 203 204 <View style={[a.pt_2xl, a.px_lg, gtMobile && a.px_2xl]}> 205 + {isDeclaredUnderage && ( 206 + <View style={[a.pb_2xl]}> 207 + <Admonition type="tip" style={[a.pb_md]}> 208 + <Trans> 209 + Your declared age is under 18. Some settings below may be 210 + disabled. If this was a mistake, you may edit your bithdate in 211 + your{' '} 212 + <InlineLinkText 213 + to="/settings/account" 214 + label={_(msg`Go to account settings`)}> 215 + account settings 216 + </InlineLinkText> 217 + . 218 + </Trans> 219 + </Admonition> 220 + </View> 221 + )} 222 + 204 223 <Text 205 224 style={[a.text_md, a.font_bold, a.pb_md, t.atoms.text_contrast_high]}> 206 225 <Trans>Moderation tools</Trans>