Add onboarding text for policy updates
This commit is contained in:
@@ -207,3 +207,10 @@ export const PUBLIC_APPVIEW_DID = 'did:web:api.bsky.app'
|
||||
export const PUBLIC_STAGING_APPVIEW_DID = 'did:web:api.staging.bsky.dev'
|
||||
|
||||
export const DEV_ENV_APPVIEW = `http://localhost:2584` // always the same
|
||||
|
||||
export const webLinks = {
|
||||
tos: `https://bsky.social/about/support/tos`,
|
||||
privacy: `https://bsky.social/about/support/privacy-policy`,
|
||||
community: `https://bsky.social/about/support/community-guidelines`,
|
||||
communityDeprecated: `https://bsky.social/about/support/community-guidelines-deprecated`,
|
||||
}
|
||||
|
||||
@@ -4,11 +4,38 @@ import {type ComAtprotoServerDescribeServer} from '@atproto/api'
|
||||
import {msg, Trans} from '@lingui/macro'
|
||||
import {useLingui} from '@lingui/react'
|
||||
|
||||
import {webLinks} from '#/lib/constants'
|
||||
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'
|
||||
|
||||
function CommunityGuidelinesNotice({}: {}) {
|
||||
const {_} = useLingui()
|
||||
return (
|
||||
<View style={[a.pt_xs]}>
|
||||
<Admonition type="info">
|
||||
<Trans>
|
||||
You also agree to{' '}
|
||||
<InlineLinkText
|
||||
label={_(msg`Bluesky's Community Guidelines`)}
|
||||
to={webLinks.communityDeprecated}>
|
||||
Bluesky’s Community Guidelines
|
||||
</InlineLinkText>
|
||||
. An{' '}
|
||||
<InlineLinkText
|
||||
label={_(msg`Bluesky's Community Guidelines`)}
|
||||
to={webLinks.community}>
|
||||
updated version of our Community Guidelines
|
||||
</InlineLinkText>{' '}
|
||||
will take effect on October 8.
|
||||
</Trans>
|
||||
</Admonition>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
|
||||
export const Policies = ({
|
||||
serviceDescription,
|
||||
needsGuardian,
|
||||
@@ -115,6 +142,8 @@ export const Policies = ({
|
||||
</Trans>
|
||||
</Text>
|
||||
) : undefined}
|
||||
|
||||
<CommunityGuidelinesNotice />
|
||||
</View>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user