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/Settings.tsx | |
parent | f36776a91e27913dea66a99903c58df165c7b7fc (diff) | |
download | voidsky-42510c0515845c3376e68c5b6a1e112500fc072a.tar.zst |
gate notification settings (#8527)
Diffstat (limited to 'src/screens/Settings/Settings.tsx')
-rw-r--r-- | src/screens/Settings/Settings.tsx | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/screens/Settings/Settings.tsx b/src/screens/Settings/Settings.tsx index 6310c7c3c..e1d197070 100644 --- a/src/screens/Settings/Settings.tsx +++ b/src/screens/Settings/Settings.tsx @@ -16,6 +16,7 @@ import { type CommonNavigatorParams, type NavigationProp, } from '#/lib/routes/types' +import {useGate} from '#/lib/statsig/statsig' import {sanitizeDisplayName} from '#/lib/strings/display-names' import {sanitizeHandle} from '#/lib/strings/handles' import {useProfileShadow} from '#/state/cache/profile-shadow' @@ -81,6 +82,7 @@ export function SettingsScreen({}: Props) { const {pendingDid, onPressSwitchAccount} = useAccountSwitcher() const [showAccounts, setShowAccounts] = useState(false) const [showDevOptions, setShowDevOptions] = useState(false) + const gate = useGate() return ( <Layout.Screen> @@ -181,14 +183,16 @@ export function SettingsScreen({}: Props) { <Trans>Moderation</Trans> </SettingsList.ItemText> </SettingsList.LinkItem> - <SettingsList.LinkItem - to="/settings/notifications" - label={_(msg`Notifications`)}> - <SettingsList.ItemIcon icon={NotificationIcon} /> - <SettingsList.ItemText> - <Trans>Notifications</Trans> - </SettingsList.ItemText> - </SettingsList.LinkItem> + {gate('reengagement_features') && ( + <SettingsList.LinkItem + to="/settings/notifications" + label={_(msg`Notifications`)}> + <SettingsList.ItemIcon icon={NotificationIcon} /> + <SettingsList.ItemText> + <Trans>Notifications</Trans> + </SettingsList.ItemText> + </SettingsList.LinkItem> + )} <SettingsList.LinkItem to="/settings/content-and-media" label={_(msg`Content and media`)}> |