Update other UI cases to use Admonitions
This commit is contained in:
@@ -8,7 +8,6 @@ import {webLinks} from '#/lib/constants'
|
||||
import {useGate} from '#/lib/statsig/statsig'
|
||||
import {atoms as a, useTheme} from '#/alf'
|
||||
import {Admonition} from '#/components/Admonition'
|
||||
import {CircleInfo_Stroke2_Corner0_Rounded as CircleInfo} from '#/components/icons/CircleInfo'
|
||||
import {InlineLinkText} from '#/components/Link'
|
||||
import {Text} from '#/components/Typography'
|
||||
|
||||
@@ -20,7 +19,7 @@ function CommunityGuidelinesNotice({}: {}) {
|
||||
|
||||
return (
|
||||
<View style={[a.pt_xs]}>
|
||||
<Admonition type="info">
|
||||
<Admonition type="tip">
|
||||
<Trans>
|
||||
You also agree to{' '}
|
||||
<InlineLinkText
|
||||
@@ -62,17 +61,12 @@ export const Policies = ({
|
||||
|
||||
if (!tos && !pp) {
|
||||
return (
|
||||
<View style={[a.gap_md]}>
|
||||
<View style={[a.flex_row, a.align_center, a.gap_xs]}>
|
||||
<CircleInfo size="md" fill={t.atoms.text_contrast_low.color} />
|
||||
|
||||
<Text style={[t.atoms.text_contrast_medium]}>
|
||||
<Trans>
|
||||
This service has not provided terms of service or a privacy
|
||||
policy.
|
||||
</Trans>
|
||||
</Text>
|
||||
</View>
|
||||
<View style={[a.gap_sm]}>
|
||||
<Admonition type="info">
|
||||
<Trans>
|
||||
This service has not provided terms of service or a privacy policy.
|
||||
</Trans>
|
||||
</Admonition>
|
||||
<CommunityGuidelinesNotice />
|
||||
</View>
|
||||
)
|
||||
@@ -138,18 +132,18 @@ export const Policies = ({
|
||||
) : null}
|
||||
|
||||
{under13 ? (
|
||||
<Text style={[a.font_bold, a.leading_snug, t.atoms.text_contrast_high]}>
|
||||
<Admonition type="error">
|
||||
<Trans>
|
||||
You must be 13 years of age or older to create an account.
|
||||
</Trans>
|
||||
</Text>
|
||||
</Admonition>
|
||||
) : needsGuardian ? (
|
||||
<Text style={[a.font_bold, a.leading_snug, t.atoms.text_contrast_high]}>
|
||||
<Admonition type="warning">
|
||||
<Trans>
|
||||
If you are not yet an adult according to the laws of your country,
|
||||
your parent or legal guardian must read these Terms on your behalf.
|
||||
</Trans>
|
||||
</Text>
|
||||
</Admonition>
|
||||
) : undefined}
|
||||
|
||||
<CommunityGuidelinesNotice />
|
||||
|
||||
Reference in New Issue
Block a user