diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-06-11 20:12:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-11 10:12:05 -0700 |
commit | 7341294df6156afdf24ab43e1e27ebba94f265ad (patch) | |
tree | 2d1e74054f82c3238a4bfcbf55121124dd079e34 /src/view/com/home/HomeHeaderLayoutMobile.tsx | |
parent | 269105371b22f2de6e8017862a783aaec340948b (diff) | |
download | voidsky-7341294df6156afdf24ab43e1e27ebba94f265ad.tar.zst |
Fix using screen names in `Link` (#8473)
* use our router in favour of useLinkBuilder * test feature using Home header feeds button * handle non-string params properly
Diffstat (limited to 'src/view/com/home/HomeHeaderLayoutMobile.tsx')
-rw-r--r-- | src/view/com/home/HomeHeaderLayoutMobile.tsx | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/view/com/home/HomeHeaderLayoutMobile.tsx b/src/view/com/home/HomeHeaderLayoutMobile.tsx index e48c2cc89..7a40604f4 100644 --- a/src/view/com/home/HomeHeaderLayoutMobile.tsx +++ b/src/view/com/home/HomeHeaderLayoutMobile.tsx @@ -1,4 +1,3 @@ -import React from 'react' import {View} from 'react-native' import Animated from 'react-native-reanimated' import {msg} from '@lingui/macro' @@ -56,13 +55,8 @@ export function HomeHeaderLayoutMobile({ <PressableScale targetScale={0.9} onPress={() => { - emitSoftReset() - }} - onPressIn={() => { - playHaptic('Heavy') - }} - onPressOut={() => { playHaptic('Light') + emitSoftReset() }}> <Logo width={30} /> </PressableScale> @@ -72,7 +66,7 @@ export function HomeHeaderLayoutMobile({ {hasSession && ( <Link testID="viewHeaderHomeFeedPrefsBtn" - to="/feeds" + to={{screen: 'Feeds'}} hitSlop={HITSLOP_10} label={_(msg`View your feeds and explore more`)} size="small" @@ -81,9 +75,7 @@ export function HomeHeaderLayoutMobile({ shape="square" style={[ a.justify_center, - { - marginRight: -Layout.BUTTON_VISUAL_ALIGNMENT_OFFSET, - }, + {marginRight: -Layout.BUTTON_VISUAL_ALIGNMENT_OFFSET}, ]}> <ButtonIcon icon={FeedsIcon} size="lg" /> </Link> |