Remove notice in create account flow (#9209)
* Remove notice of policy updates * Rm debug code
This commit is contained in:
@@ -3,7 +3,6 @@ export type Gate =
|
|||||||
| 'alt_share_icon'
|
| 'alt_share_icon'
|
||||||
| 'debug_show_feedcontext'
|
| 'debug_show_feedcontext'
|
||||||
| 'debug_subscriptions'
|
| 'debug_subscriptions'
|
||||||
| 'disable_onboarding_policy_update_notice'
|
|
||||||
| 'explore_show_suggested_feeds'
|
| 'explore_show_suggested_feeds'
|
||||||
| 'feed_reply_button_open_thread'
|
| 'feed_reply_button_open_thread'
|
||||||
| 'old_postonboarding'
|
| 'old_postonboarding'
|
||||||
|
|||||||
@@ -4,42 +4,11 @@ import {type ComAtprotoServerDescribeServer} from '@atproto/api'
|
|||||||
import {msg, Trans} from '@lingui/macro'
|
import {msg, Trans} from '@lingui/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
|
|
||||||
import {webLinks} from '#/lib/constants'
|
|
||||||
import {useGate} from '#/lib/statsig/statsig'
|
|
||||||
import {atoms as a, useTheme} from '#/alf'
|
import {atoms as a, useTheme} from '#/alf'
|
||||||
import {Admonition} from '#/components/Admonition'
|
import {Admonition} from '#/components/Admonition'
|
||||||
import {InlineLinkText} from '#/components/Link'
|
import {InlineLinkText} from '#/components/Link'
|
||||||
import {Text} from '#/components/Typography'
|
import {Text} from '#/components/Typography'
|
||||||
|
|
||||||
function CommunityGuidelinesNotice({}: {}) {
|
|
||||||
const {_} = useLingui()
|
|
||||||
const gate = useGate()
|
|
||||||
|
|
||||||
if (gate('disable_onboarding_policy_update_notice')) return null
|
|
||||||
|
|
||||||
return (
|
|
||||||
<View style={[a.pt_xs]}>
|
|
||||||
<Admonition type="tip">
|
|
||||||
<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 Updated Community Guidelines`)}
|
|
||||||
to={webLinks.community}>
|
|
||||||
updated version of our Community Guidelines
|
|
||||||
</InlineLinkText>{' '}
|
|
||||||
will take effect on October 15th.
|
|
||||||
</Trans>
|
|
||||||
</Admonition>
|
|
||||||
</View>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export const Policies = ({
|
export const Policies = ({
|
||||||
serviceDescription,
|
serviceDescription,
|
||||||
needsGuardian,
|
needsGuardian,
|
||||||
@@ -67,7 +36,6 @@ export const Policies = ({
|
|||||||
This service has not provided terms of service or a privacy policy.
|
This service has not provided terms of service or a privacy policy.
|
||||||
</Trans>
|
</Trans>
|
||||||
</Admonition>
|
</Admonition>
|
||||||
<CommunityGuidelinesNotice />
|
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -145,8 +113,6 @@ export const Policies = ({
|
|||||||
</Trans>
|
</Trans>
|
||||||
</Admonition>
|
</Admonition>
|
||||||
) : undefined}
|
) : undefined}
|
||||||
|
|
||||||
<CommunityGuidelinesNotice />
|
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user