From 68b60c6b19ab3f29512c00058d8ac5de595d613d Mon Sep 17 00:00:00 2001 From: Hailey Date: Tue, 9 Apr 2024 08:25:03 -0700 Subject: [PATCH] use `hide_vertical_scroll_indicators` --- src/view/com/util/List.tsx | 2 +- src/view/com/util/Views.jsx | 4 ++-- src/view/screens/ModerationBlockedAccounts.tsx | 2 +- src/view/screens/ModerationMutedAccounts.tsx | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/view/com/util/List.tsx b/src/view/com/util/List.tsx index 41da06337e..345f0a8142 100644 --- a/src/view/com/util/List.tsx +++ b/src/view/com/util/List.tsx @@ -41,7 +41,7 @@ function ListImpl( const contextScrollHandlers = useScrollHandlers() const pal = usePalette('default') const showsVerticalScrollIndicator = - useGate('shows_vertical_scroll_indicator') && isWeb + !useGate('hide_vertical_scroll_indicators') && isWeb function handleScrolledDownChange(didScrollDown: boolean) { onScrolledDownChange?.(didScrollDown) } diff --git a/src/view/com/util/Views.jsx b/src/view/com/util/Views.jsx index 6bf139ff95..6850f42a48 100644 --- a/src/view/com/util/Views.jsx +++ b/src/view/com/util/Views.jsx @@ -10,8 +10,8 @@ export function CenteredView(props) { } export function ScrollView(props) { - const showsVerticalScrollIndicator = useGate( - 'shows_vertical_scroll_indicator', + const showsVerticalScrollIndicator = !useGate( + 'hide_vertical_scroll_indicators', ) return ( diff --git a/src/view/screens/ModerationBlockedAccounts.tsx b/src/view/screens/ModerationBlockedAccounts.tsx index 5bdb0df3fd..0d46f0c02f 100644 --- a/src/view/screens/ModerationBlockedAccounts.tsx +++ b/src/view/screens/ModerationBlockedAccounts.tsx @@ -39,7 +39,7 @@ export function ModerationBlockedAccounts({}: Props) { const {isTabletOrDesktop} = useWebMediaQueries() const {screen} = useAnalytics() const showsVerticalScrollIndicator = - useGate('shows_vertical_scroll_indicator') && isWeb + !useGate('hide_vertical_scroll_indicators') && isWeb const [isPTRing, setIsPTRing] = React.useState(false) const { diff --git a/src/view/screens/ModerationMutedAccounts.tsx b/src/view/screens/ModerationMutedAccounts.tsx index c9bad42237..828e18f67f 100644 --- a/src/view/screens/ModerationMutedAccounts.tsx +++ b/src/view/screens/ModerationMutedAccounts.tsx @@ -39,7 +39,7 @@ export function ModerationMutedAccounts({}: Props) { const {isTabletOrDesktop} = useWebMediaQueries() const {screen} = useAnalytics() const showsVerticalScrollIndicator = - useGate('shows_vertical_scroll_indicator') && isWeb + !useGate('hide_vertical_scroll_indicators') && isWeb const [isPTRing, setIsPTRing] = React.useState(false) const { data,