diff options
Diffstat (limited to 'src/view/com/pager/FeedsTabBarMobile.tsx')
-rw-r--r-- | src/view/com/pager/FeedsTabBarMobile.tsx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/view/com/pager/FeedsTabBarMobile.tsx b/src/view/com/pager/FeedsTabBarMobile.tsx index d5de87081..9848ce2d5 100644 --- a/src/view/com/pager/FeedsTabBarMobile.tsx +++ b/src/view/com/pager/FeedsTabBarMobile.tsx @@ -13,21 +13,23 @@ import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import {FontAwesomeIconStyle} from '@fortawesome/react-native-fontawesome' import {s} from 'lib/styles' import {HITSLOP_10} from 'lib/constants' -import {useMinimalShellMode} from 'lib/hooks/useMinimalShellMode' import Animated from 'react-native-reanimated' +import {useMinimalShellMode} from 'lib/hooks/useMinimalShellMode' +import {useSetDrawerOpen} from '#/state/shell/drawer-open' export const FeedsTabBar = observer(function FeedsTabBarImpl( props: RenderTabBarFnProps & {testID?: string; onPressSelected: () => void}, ) { const pal = usePalette('default') const store = useStores() + const setDrawerOpen = useSetDrawerOpen() const items = useHomeTabs(store.preferences.pinnedFeeds) const brandBlue = useColorSchemeStyle(s.brandBlue, s.blue3) - const {headerMinimalShellTransform} = useMinimalShellMode() + const {minimalShellMode, headerMinimalShellTransform} = useMinimalShellMode() const onPressAvi = React.useCallback(() => { - store.shell.openDrawer() - }, [store]) + setDrawerOpen(true) + }, [setDrawerOpen]) return ( <Animated.View @@ -36,7 +38,7 @@ export const FeedsTabBar = observer(function FeedsTabBarImpl( pal.border, styles.tabBar, headerMinimalShellTransform, - store.shell.minimalShellMode && styles.disabled, + minimalShellMode && styles.disabled, ]}> <View style={[pal.view, styles.topBar]}> <View style={[pal.view]}> |