From bb0a6a4b6c4e86c62d599c424dae35c9ee9d200d Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 11 Jun 2024 17:42:28 -0500 Subject: Add KnownFollowers component to standard profile header (#4420) * Add KnownFollowers component to standard profile header * Prep for known followers screen * Add known followers screen * Tighten space * Add pressed state * Edit title * Vertically center * Don't show if no known followers * Bump sdk * Use actual followers.length to show * Updates to show logic, space * Prevent fresh data from applying to cached screens * Tighten space * Better label * Oxford comma * Fix count logic * Add bskyweb route * Useless ternary * Minor spacing tweak --------- Co-authored-by: Paul Frazee --- src/Navigation.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/Navigation.tsx') diff --git a/src/Navigation.tsx b/src/Navigation.tsx index 8f8855d67..67b89e262 100644 --- a/src/Navigation.tsx +++ b/src/Navigation.tsx @@ -41,6 +41,7 @@ import {PreferencesThreads} from 'view/screens/PreferencesThreads' import {SavedFeeds} from 'view/screens/SavedFeeds' import HashtagScreen from '#/screens/Hashtag' import {ModerationScreen} from '#/screens/Moderation' +import {ProfileKnownFollowersScreen} from '#/screens/Profile/KnownFollowers' import {ProfileLabelerLikedByScreen} from '#/screens/Profile/ProfileLabelerLikedBy' import {init as initAnalytics} from './lib/analytics/analytics' import {useWebScrollRestoration} from './lib/hooks/useWebScrollRestoration' @@ -169,6 +170,13 @@ function commonScreens(Stack: typeof HomeTab, unreadCountLabel?: string) { title: title(msg`People followed by @${route.params.name}`), })} /> + ProfileKnownFollowersScreen} + options={({route}) => ({ + title: title(msg`Followers of @${route.params.name} that you know`), + })} + /> ProfileListScreen} -- cgit 1.4.1