diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-06-18 23:36:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-18 13:36:37 -0700 |
commit | 42510c0515845c3376e68c5b6a1e112500fc072a (patch) | |
tree | d5c6a2610b60911c728e8433cc504263422151ed /src/screens/Settings/NotificationSettings | |
parent | f36776a91e27913dea66a99903c58df165c7b7fc (diff) | |
download | voidsky-42510c0515845c3376e68c5b6a1e112500fc072a.tar.zst |
gate notification settings (#8527)
Diffstat (limited to 'src/screens/Settings/NotificationSettings')
-rw-r--r-- | src/screens/Settings/NotificationSettings/components/PreferenceControls.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/screens/Settings/NotificationSettings/components/PreferenceControls.tsx b/src/screens/Settings/NotificationSettings/components/PreferenceControls.tsx index 8d80e4ed3..487827d66 100644 --- a/src/screens/Settings/NotificationSettings/components/PreferenceControls.tsx +++ b/src/screens/Settings/NotificationSettings/components/PreferenceControls.tsx @@ -5,6 +5,7 @@ import {type FilterablePreference} from '@atproto/api/dist/client/types/app/bsky import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' +import {useGate} from '#/lib/statsig/statsig' import {useNotificationSettingsUpdateMutation} from '#/state/queries/notifications/settings' import {atoms as a, platform, useTheme} from '#/alf' import * as Toggle from '#/components/forms/Toggle' @@ -27,6 +28,10 @@ export function PreferenceControls({ preference?: AppBskyNotificationDefs.Preference | FilterablePreference allowDisableInApp?: boolean }) { + const gate = useGate() + + if (!gate('reengagement_features')) return null + if (!preference) return ( <View style={[a.w_full, a.pt_5xl, a.align_center]}> |