diff options
author | Eric Bailey <git@esb.lol> | 2024-06-11 17:42:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-11 15:42:28 -0700 |
commit | bb0a6a4b6c4e86c62d599c424dae35c9ee9d200d (patch) | |
tree | dc4732574140d62efe2bb205193c93996b05a98e /src/screens/Profile/Header/ProfileHeaderStandard.tsx | |
parent | 7011ac8f72ed18153ea485b6cce2e18040de2dc9 (diff) | |
download | voidsky-bb0a6a4b6c4e86c62d599c424dae35c9ee9d200d.tar.zst |
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 <pfrazee@gmail.com>
Diffstat (limited to 'src/screens/Profile/Header/ProfileHeaderStandard.tsx')
-rw-r--r-- | src/screens/Profile/Header/ProfileHeaderStandard.tsx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/screens/Profile/Header/ProfileHeaderStandard.tsx b/src/screens/Profile/Header/ProfileHeaderStandard.tsx index f4b8d7705..f8a87a68e 100644 --- a/src/screens/Profile/Header/ProfileHeaderStandard.tsx +++ b/src/screens/Profile/Header/ProfileHeaderStandard.tsx @@ -30,6 +30,10 @@ import {Button, ButtonIcon, ButtonText} from '#/components/Button' import {MessageProfileButton} from '#/components/dms/MessageProfileButton' import {Check_Stroke2_Corner0_Rounded as Check} from '#/components/icons/Check' import {PlusLarge_Stroke2_Corner0_Rounded as Plus} from '#/components/icons/Plus' +import { + KnownFollowers, + shouldShowKnownFollowers, +} from '#/components/KnownFollowers' import * as Prompt from '#/components/Prompt' import {RichText} from '#/components/RichText' import {ProfileHeaderDisplayName} from './DisplayName' @@ -268,6 +272,16 @@ let ProfileHeaderStandard = ({ /> </View> ) : undefined} + + {!isMe && + shouldShowKnownFollowers(profile.viewer?.knownFollowers) && ( + <View style={[a.flex_row, a.align_center, a.gap_sm, a.pt_md]}> + <KnownFollowers + profile={profile} + moderationOpts={moderationOpts} + /> + </View> + )} </> )} </View> |