about summary refs log tree commit diff
path: root/src/screens/Settings/NotificationSettings/components/PreferenceControls.tsx
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-06-18 23:36:37 +0300
committerGitHub <noreply@github.com>2025-06-18 13:36:37 -0700
commit42510c0515845c3376e68c5b6a1e112500fc072a (patch)
treed5c6a2610b60911c728e8433cc504263422151ed /src/screens/Settings/NotificationSettings/components/PreferenceControls.tsx
parentf36776a91e27913dea66a99903c58df165c7b7fc (diff)
downloadvoidsky-42510c0515845c3376e68c5b6a1e112500fc072a.tar.zst
gate notification settings (#8527)
Diffstat (limited to 'src/screens/Settings/NotificationSettings/components/PreferenceControls.tsx')
-rw-r--r--src/screens/Settings/NotificationSettings/components/PreferenceControls.tsx5
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]}>