Bluesky app fork with some witchin' additions 💫

remove `hide_vertical_scrollbars` test (#3855)

authored by hailey.at and committed by

GitHub b34d2242 db0b0303

+1 -28
-1
src/lib/statsig/gates.ts
··· 4 4 | 'disable_min_shell_on_foregrounding_v3' 5 5 | 'disable_poll_on_discover_v2' 6 6 | 'dms' 7 - | 'hide_vertical_scroll_indicators' 8 7 | 'show_follow_back_label_v2' 9 8 | 'start_session_with_following_v2' 10 9 | 'test_gate_1'
-6
src/view/com/util/List.tsx
··· 5 5 import {useAnimatedScrollHandler} from '#/lib/hooks/useAnimatedScrollHandler_FIXED' 6 6 import {usePalette} from '#/lib/hooks/usePalette' 7 7 import {useScrollHandlers} from '#/lib/ScrollContext' 8 - import {useGate} from 'lib/statsig/statsig' 9 8 import {addStyle} from 'lib/styles' 10 - import {isWeb} from 'platform/detection' 11 9 import {FlatList_INTERNAL} from './Views' 12 10 13 11 export type ListMethods = FlatList_INTERNAL ··· 45 43 const isScrolledDown = useSharedValue(false) 46 44 const contextScrollHandlers = useScrollHandlers() 47 45 const pal = usePalette('default') 48 - const gate = useGate() 49 46 50 47 function handleScrolledDownChange(didScrollDown: boolean) { 51 48 onScrolledDownChange?.(didScrollDown) ··· 107 104 scrollEventThrottle={1} 108 105 style={style} 109 106 ref={ref} 110 - showsVerticalScrollIndicator={ 111 - isWeb || !gate('hide_vertical_scroll_indicators') 112 - } 113 107 /> 114 108 ) 115 109 }
+1 -9
src/view/com/util/Views.jsx
··· 2 2 import {View} from 'react-native' 3 3 import Animated from 'react-native-reanimated' 4 4 5 - import {useGate} from 'lib/statsig/statsig' 6 - 7 5 export const FlatList_INTERNAL = Animated.FlatList 8 6 export function CenteredView(props) { 9 7 return <View {...props} /> 10 8 } 11 9 12 10 export function ScrollView(props) { 13 - const gate = useGate() 14 - return ( 15 - <Animated.ScrollView 16 - {...props} 17 - showsVerticalScrollIndicator={!gate('hide_vertical_scroll_indicators')} 18 - /> 19 - ) 11 + return <Animated.ScrollView {...props} /> 20 12 }
-6
src/view/screens/ModerationBlockedAccounts.tsx
··· 20 20 import {usePalette} from 'lib/hooks/usePalette' 21 21 import {useWebMediaQueries} from 'lib/hooks/useWebMediaQueries' 22 22 import {CommonNavigatorParams} from 'lib/routes/types' 23 - import {useGate} from 'lib/statsig/statsig' 24 - import {isWeb} from 'platform/detection' 25 23 import {ProfileCard} from 'view/com/profile/ProfileCard' 26 24 import {CenteredView} from 'view/com/util/Views' 27 25 import {ErrorScreen} from '../com/util/error/ErrorScreen' ··· 38 36 const setMinimalShellMode = useSetMinimalShellMode() 39 37 const {isTabletOrDesktop} = useWebMediaQueries() 40 38 const {screen} = useAnalytics() 41 - const gate = useGate() 42 39 43 40 const [isPTRing, setIsPTRing] = React.useState(false) 44 41 const { ··· 168 165 )} 169 166 // @ts-ignore our .web version only -prf 170 167 desktopFixedHeight 171 - showsVerticalScrollIndicator={ 172 - isWeb || !gate('hide_vertical_scroll_indicators') 173 - } 174 168 /> 175 169 )} 176 170 </CenteredView>
-6
src/view/screens/ModerationMutedAccounts.tsx
··· 20 20 import {usePalette} from 'lib/hooks/usePalette' 21 21 import {useWebMediaQueries} from 'lib/hooks/useWebMediaQueries' 22 22 import {CommonNavigatorParams} from 'lib/routes/types' 23 - import {useGate} from 'lib/statsig/statsig' 24 - import {isWeb} from 'platform/detection' 25 23 import {ProfileCard} from 'view/com/profile/ProfileCard' 26 24 import {CenteredView} from 'view/com/util/Views' 27 25 import {ErrorScreen} from '../com/util/error/ErrorScreen' ··· 38 36 const setMinimalShellMode = useSetMinimalShellMode() 39 37 const {isTabletOrDesktop} = useWebMediaQueries() 40 38 const {screen} = useAnalytics() 41 - const gate = useGate() 42 39 43 40 const [isPTRing, setIsPTRing] = React.useState(false) 44 41 const { ··· 167 164 )} 168 165 // @ts-ignore our .web version only -prf 169 166 desktopFixedHeight 170 - showsVerticalScrollIndicator={ 171 - isWeb || !gate('hide_vertical_scroll_indicators') 172 - } 173 167 /> 174 168 )} 175 169 </CenteredView>