From 329b254de19f5f2e5bc9a45fcfb3e143270eb638 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 11 Dec 2024 16:03:08 -0600 Subject: [PATCH] Couple of fixes --- .../Profile/components/ProfileFeedHeader.tsx | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/screens/Profile/components/ProfileFeedHeader.tsx b/src/screens/Profile/components/ProfileFeedHeader.tsx index 03ba8a2cdb..1958ac0676 100644 --- a/src/screens/Profile/components/ProfileFeedHeader.tsx +++ b/src/screens/Profile/components/ProfileFeedHeader.tsx @@ -124,9 +124,9 @@ export function ProfileFeedHeader({info}: {info: FeedSourceFeedInfo}) { ]) if (pinned) { - Toast.show(_(msg`Pinned to your home screen`)) + Toast.show(_(msg`Pinned ${info.displayName} to Home`)) } else { - Toast.show(_(msg`Un-pinned from your home screen`)) + Toast.show(_(msg`Un-pinned ${info.displayName} from Home`)) } } else { await addSavedFeeds([ @@ -136,7 +136,7 @@ export function ProfileFeedHeader({info}: {info: FeedSourceFeedInfo}) { pinned: true, }, ]) - Toast.show(_(msg`Pinned to your home screen`)) + Toast.show(_(msg`Pinned ${info.displayName} to Home`)) } } catch (e) { Toast.show(_(msg`There was an issue contacting the server`), 'xmark') @@ -166,7 +166,10 @@ export function ProfileFeedHeader({info}: {info: FeedSourceFeedInfo}) { paddingRight: 12, }, ]} - onPress={() => infoControl.open()}> + onPress={() => { + playHaptic() + infoControl.open() + }}> {({hovered, pressed}) => ( <> { + playHaptic() const url = toShareUrl(info.route.href) shareUrl(url) - }, [info]) + }, [info, playHaptic]) const onPressReport = React.useCallback(() => { reportDialogControl.open() @@ -459,7 +461,7 @@ function DialogInner({