Add KnownFollowers to ProfileGrid suggestion cards
Show known followers (compact/minimal) on each suggested profile card in the ProfileGrid, between the description and the follow button. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -37,6 +37,10 @@ import * as FeedCard from '#/components/FeedCard'
|
|||||||
import {ArrowRight_Stroke2_Corner0_Rounded as ArrowRight} from '#/components/icons/Arrow'
|
import {ArrowRight_Stroke2_Corner0_Rounded as ArrowRight} from '#/components/icons/Arrow'
|
||||||
import {Hashtag_Stroke2_Corner0_Rounded as Hashtag} from '#/components/icons/Hashtag'
|
import {Hashtag_Stroke2_Corner0_Rounded as Hashtag} from '#/components/icons/Hashtag'
|
||||||
import {TimesLarge_Stroke2_Corner0_Rounded as X} from '#/components/icons/Times'
|
import {TimesLarge_Stroke2_Corner0_Rounded as X} from '#/components/icons/Times'
|
||||||
|
import {
|
||||||
|
KnownFollowers,
|
||||||
|
shouldShowKnownFollowers,
|
||||||
|
} from '#/components/KnownFollowers'
|
||||||
import {InlineLinkText} from '#/components/Link'
|
import {InlineLinkText} from '#/components/Link'
|
||||||
import * as ProfileCard from '#/components/ProfileCard'
|
import * as ProfileCard from '#/components/ProfileCard'
|
||||||
import {Text} from '#/components/Typography'
|
import {Text} from '#/components/Typography'
|
||||||
@@ -504,6 +508,16 @@ export function ProfileGrid({
|
|||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
|
{shouldShowKnownFollowers(
|
||||||
|
profile.actor.viewer?.knownFollowers,
|
||||||
|
) && (
|
||||||
|
<KnownFollowers
|
||||||
|
profile={profile.actor}
|
||||||
|
moderationOpts={moderationOpts}
|
||||||
|
minimal
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
|
||||||
<ProfileCard.FollowButton
|
<ProfileCard.FollowButton
|
||||||
profile={profile.actor}
|
profile={profile.actor}
|
||||||
moderationOpts={moderationOpts}
|
moderationOpts={moderationOpts}
|
||||||
|
|||||||
Reference in New Issue
Block a user