diff options
author | Francesco Lodovici <2643961+frncs-eu@users.noreply.github.com> | 2024-06-10 17:19:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-10 17:19:28 +0200 |
commit | b688da8d5860569108a7f487dc97c5f0b403aee1 (patch) | |
tree | 73eed1b1dbc378efcf23acc0ccf2062969d0fbb9 /src/view/com/home/HomeHeaderLayout.web.tsx | |
parent | fd03ea3fe1d4f3c6a4079272b0dbd21c4e0d2b1b (diff) | |
download | voidsky-b688da8d5860569108a7f487dc97c5f0b403aee1.tar.zst |
* Fix (#4430): Use separate hooks for shell mode animated styles * Consolidate in one file --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
Diffstat (limited to 'src/view/com/home/HomeHeaderLayout.web.tsx')
-rw-r--r-- | src/view/com/home/HomeHeaderLayout.web.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view/com/home/HomeHeaderLayout.web.tsx b/src/view/com/home/HomeHeaderLayout.web.tsx index f00a15b3f..474fc392d 100644 --- a/src/view/com/home/HomeHeaderLayout.web.tsx +++ b/src/view/com/home/HomeHeaderLayout.web.tsx @@ -11,7 +11,7 @@ import {useLingui} from '@lingui/react' import {CogIcon} from '#/lib/icons' import {useSession} from '#/state/session' import {useShellLayout} from '#/state/shell/shell-layout' -import {useMinimalShellMode} from 'lib/hooks/useMinimalShellMode' +import {useMinimalShellHeaderTransform} from 'lib/hooks/useMinimalShellTransform' import {usePalette} from 'lib/hooks/usePalette' import {useWebMediaQueries} from 'lib/hooks/useWebMediaQueries' import {Logo} from '#/view/icons/Logo' @@ -39,7 +39,7 @@ function HomeHeaderLayoutDesktopAndTablet({ tabBarAnchor: JSX.Element | null | undefined }) { const pal = usePalette('default') - const {headerMinimalShellTransform} = useMinimalShellMode() + const headerMinimalShellTransform = useMinimalShellHeaderTransform() const {headerHeight} = useShellLayout() const {hasSession} = useSession() const {_} = useLingui() |