diff --git a/src/lib/statsig/gates.ts b/src/lib/statsig/gates.ts index 3b1106480d..c3bd1a7cbf 100644 --- a/src/lib/statsig/gates.ts +++ b/src/lib/statsig/gates.ts @@ -3,6 +3,7 @@ export type Gate = | 'alt_share_icon' | 'debug_show_feedcontext' | 'debug_subscriptions' + | 'disable_onboarding_policy_update_notice' | 'explore_show_suggested_feeds' | 'old_postonboarding' | 'onboarding_add_video_feed' diff --git a/src/screens/Signup/StepInfo/Policies.tsx b/src/screens/Signup/StepInfo/Policies.tsx index d797bf2788..785ce93a56 100644 --- a/src/screens/Signup/StepInfo/Policies.tsx +++ b/src/screens/Signup/StepInfo/Policies.tsx @@ -5,6 +5,7 @@ import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' 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' @@ -13,6 +14,10 @@ import {Text} from '#/components/Typography' function CommunityGuidelinesNotice({}: {}) { const {_} = useLingui() + const gate = useGate() + + if (gate('disable_onboarding_policy_update_notice')) return null + return ( @@ -25,7 +30,7 @@ function CommunityGuidelinesNotice({}: {}) { . An{' '} updated version of our Community Guidelines {' '} @@ -57,14 +62,18 @@ export const Policies = ({ if (!tos && !pp) { return ( - - + + + - - - This service has not provided terms of service or a privacy policy. - - + + + This service has not provided terms of service or a privacy + policy. + + + + ) }