diff options
author | dan <dan.abramov@gmail.com> | 2023-11-09 00:25:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-09 00:25:27 +0000 |
commit | 82059b7ee138d24ff50b0f4fad0eaeac860bb78c (patch) | |
tree | 05db1953b6405d218d3a23d3030dab47a10e05ec /src/view/shell/bottom-bar/BottomBar.tsx | |
parent | bd531f2344c181261afaf8c43c96daf569b58f09 (diff) | |
download | voidsky-82059b7ee138d24ff50b0f4fad0eaeac860bb78c.tar.zst |
Hide/show header and footer without re-renders, take two (#1849)
* Remove callsites using the state value * Remove unused code * Change shell mode without re-renders * Adjust "write your reply" for mode
Diffstat (limited to 'src/view/shell/bottom-bar/BottomBar.tsx')
-rw-r--r-- | src/view/shell/bottom-bar/BottomBar.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/view/shell/bottom-bar/BottomBar.tsx b/src/view/shell/bottom-bar/BottomBar.tsx index fedfcdfca..db4fa9d71 100644 --- a/src/view/shell/bottom-bar/BottomBar.tsx +++ b/src/view/shell/bottom-bar/BottomBar.tsx @@ -39,7 +39,7 @@ export const BottomBar = observer(function BottomBarImpl({ const {isAtHome, isAtSearch, isAtFeeds, isAtNotifications, isAtMyProfile} = useNavigationTabState() - const {minimalShellMode, footerMinimalShellTransform} = useMinimalShellMode() + const {footerMinimalShellTransform} = useMinimalShellMode() const {notifications} = store.me const onPressTab = React.useCallback( @@ -85,7 +85,6 @@ export const BottomBar = observer(function BottomBarImpl({ pal.border, {paddingBottom: clamp(safeAreaInsets.bottom, 15, 30)}, footerMinimalShellTransform, - minimalShellMode && styles.disabled, ]}> <Btn testID="bottomBarHomeBtn" |