diff options
author | dan <dan.abramov@gmail.com> | 2024-06-13 04:23:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-13 04:23:37 +0200 |
commit | ebd4f93b9cd2be7f5dd24f018d74d88d36eda44e (patch) | |
tree | 2126e44cb6d23d02516d834bcb9e22c87dd310fd /src/components/ProfileHoverCard/index.web.tsx | |
parent | a55f924639605709d436474073e75f9f39a84276 (diff) | |
download | voidsky-ebd4f93b9cd2be7f5dd24f018d74d88d36eda44e.tar.zst |
Show social proof in hovercards (#4502)
* Add social proof to hovercards * Close it more reliably
Diffstat (limited to 'src/components/ProfileHoverCard/index.web.tsx')
-rw-r--r-- | src/components/ProfileHoverCard/index.web.tsx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/components/ProfileHoverCard/index.web.tsx b/src/components/ProfileHoverCard/index.web.tsx index 024867b1a..1fd74fd19 100644 --- a/src/components/ProfileHoverCard/index.web.tsx +++ b/src/components/ProfileHoverCard/index.web.tsx @@ -22,6 +22,10 @@ import {useFollowMethods} from '#/components/hooks/useFollowMethods' import {useRichText} from '#/components/hooks/useRichText' 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 {InlineLinkText, Link} from '#/components/Link' import {Loader} from '#/components/Loader' import {Portal} from '#/components/Portal' @@ -473,6 +477,17 @@ function Inner({ /> </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} + onLinkPress={hide} + /> + </View> + )} </> )} </View> |