diff options
author | dan <dan.abramov@gmail.com> | 2024-04-18 04:39:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-18 04:39:29 +0100 |
commit | 02becdf4491cded0f0435e880e1ad4030d500403 (patch) | |
tree | 725ffa94609c380d4a9d8f25609642eb7d4b4748 /src/view/screens/ModerationBlockedAccounts.tsx | |
parent | 086dc93a7a6e69b0df2ed084ee68bb4e26c13f88 (diff) | |
download | voidsky-02becdf4491cded0f0435e880e1ad4030d500403.tar.zst |
[Statsig] Make gate checks lazily (#3594)
Diffstat (limited to 'src/view/screens/ModerationBlockedAccounts.tsx')
-rw-r--r-- | src/view/screens/ModerationBlockedAccounts.tsx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/view/screens/ModerationBlockedAccounts.tsx b/src/view/screens/ModerationBlockedAccounts.tsx index 7b68c2256..b7ce8cdd0 100644 --- a/src/view/screens/ModerationBlockedAccounts.tsx +++ b/src/view/screens/ModerationBlockedAccounts.tsx @@ -38,8 +38,7 @@ export function ModerationBlockedAccounts({}: Props) { const setMinimalShellMode = useSetMinimalShellMode() const {isTabletOrDesktop} = useWebMediaQueries() const {screen} = useAnalytics() - const showsVerticalScrollIndicator = - !useGate('hide_vertical_scroll_indicators') || isWeb + const gate = useGate() const [isPTRing, setIsPTRing] = React.useState(false) const { @@ -169,7 +168,9 @@ export function ModerationBlockedAccounts({}: Props) { )} // @ts-ignore our .web version only -prf desktopFixedHeight - showsVerticalScrollIndicator={showsVerticalScrollIndicator} + showsVerticalScrollIndicator={ + isWeb || !gate('hide_vertical_scroll_indicators') + } /> )} </CenteredView> |