From d88c27a41995c181a38c01248fe01f853ba83366 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Wed, 17 May 2023 23:36:36 -0500 Subject: Improve web titles --- src/Navigation.tsx | 8 ++------ src/view/screens/CustomFeed.tsx | 3 +++ 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/Navigation.tsx b/src/Navigation.tsx index 46189c5f0..ff7a5f5c2 100644 --- a/src/Navigation.tsx +++ b/src/Navigation.tsx @@ -150,16 +150,12 @@ function commonScreens(Stack: typeof HomeTab, unreadCountLabel?: string) { ({ - title: title(`Custom feed by @${route.params.name}`), - })} + options={{title: title('Feed')}} /> ({ - title: title(`Custom feed by @${route.params.name}`), - })} + options={{title: title('Liked by')}} /> export const CustomFeedScreen = withAuthRequired( @@ -41,6 +42,8 @@ export const CustomFeedScreen = withAuthRequired( return feed }, [store, uri]) + useSetTitle(currentFeed?.displayName) + const onToggleSaved = React.useCallback(async () => { try { if (currentFeed?.isSaved) { -- cgit 1.4.1