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/HomeHeaderLayoutMobile.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/HomeHeaderLayoutMobile.tsx')
-rw-r--r-- | src/view/com/home/HomeHeaderLayoutMobile.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view/com/home/HomeHeaderLayoutMobile.tsx b/src/view/com/home/HomeHeaderLayoutMobile.tsx index 78fa9af86..5ce1d80a7 100644 --- a/src/view/com/home/HomeHeaderLayoutMobile.tsx +++ b/src/view/com/home/HomeHeaderLayoutMobile.tsx @@ -10,7 +10,7 @@ import {useSession} from '#/state/session' import {useSetDrawerOpen} from '#/state/shell/drawer-open' import {useShellLayout} from '#/state/shell/shell-layout' import {HITSLOP_10} from 'lib/constants' -import {useMinimalShellMode} from 'lib/hooks/useMinimalShellMode' +import {useMinimalShellHeaderTransform} from 'lib/hooks/useMinimalShellTransform' import {usePalette} from 'lib/hooks/usePalette' import {isWeb} from 'platform/detection' import {Logo} from '#/view/icons/Logo' @@ -30,7 +30,7 @@ export function HomeHeaderLayoutMobile({ const {_} = useLingui() const setDrawerOpen = useSetDrawerOpen() const {headerHeight} = useShellLayout() - const {headerMinimalShellTransform} = useMinimalShellMode() + const headerMinimalShellTransform = useMinimalShellHeaderTransform() const {hasSession} = useSession() const onPressAvi = React.useCallback(() => { |