diff options
author | Eric Bailey <git@esb.lol> | 2025-08-18 19:24:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-18 19:24:54 -0500 |
commit | 92ad887e3881a04339144346dfad24007b3b7704 (patch) | |
tree | bfa2d149cfd37560005272e87c7a9e1b7b0f34c3 /src/screens | |
parent | 122a46891a7f912c8e2777bae00c4b1f64154257 (diff) | |
download | voidsky-92ad887e3881a04339144346dfad24007b3b7704.tar.zst |
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>
Diffstat (limited to 'src/screens')
-rw-r--r-- | src/screens/Moderation/index.tsx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/screens/Moderation/index.tsx b/src/screens/Moderation/index.tsx index 1517792a1..e829abd47 100644 --- a/src/screens/Moderation/index.tsx +++ b/src/screens/Moderation/index.tsx @@ -22,6 +22,7 @@ import { import {isNonConfigurableModerationAuthority} from '#/state/session/additional-moderation-authorities' import {useSetMinimalShellMode} from '#/state/shell' import {atoms as a, useBreakpoints, useTheme, type ViewStyleProp} from '#/alf' +import {Admonition} from '#/components/Admonition' import {AgeAssuranceAdmonition} from '#/components/ageAssurance/AgeAssuranceAdmonition' import {Button, ButtonText} from '#/components/Button' import * as Dialog from '#/components/Dialog' @@ -201,6 +202,24 @@ export function ModerationScreenInner({ return ( <View style={[a.pt_2xl, a.px_lg, gtMobile && a.px_2xl]}> + {isDeclaredUnderage && ( + <View style={[a.pb_2xl]}> + <Admonition type="tip" style={[a.pb_md]}> + <Trans> + Your declared age is under 18. Some settings below may be + disabled. If this was a mistake, you may edit your bithdate in + your{' '} + <InlineLinkText + to="/settings/account" + label={_(msg`Go to account settings`)}> + account settings + </InlineLinkText> + . + </Trans> + </Admonition> + </View> + )} + <Text style={[a.text_md, a.font_bold, a.pb_md, t.atoms.text_contrast_high]}> <Trans>Moderation tools</Trans> |