From 6a0c100b755f2f6f4f9ab852ca20fc1060ddc2a8 Mon Sep 17 00:00:00 2001 From: isabel Date: Sat, 11 Oct 2025 12:35:10 +0100 Subject: [PATCH] feat: mutuals pill from: https://github.com/NekoDrone/catsky-social/pull/73 --- src/components/Pills.tsx | 27 +++++++++++++++++++++++++++ src/components/ProfileCard.tsx | 3 ++- src/screens/Profile/Header/Handle.tsx | 4 +++- 3 files changed, 32 insertions(+), 2 deletions(-) diff --git a/src/components/Pills.tsx b/src/components/Pills.tsx index 412a47159..543b42f50 100644 --- a/src/components/Pills.tsx +++ b/src/components/Pills.tsx @@ -180,3 +180,30 @@ export function FollowsYou({size = 'sm'}: CommonProps) { ) } + +export function Mutuals({size = 'sm'}: CommonProps) { + const t = useTheme() + + const variantStyles = React.useMemo(() => { + switch (size) { + case 'sm': + case 'lg': + default: + return [ + { + paddingHorizontal: 6, + paddingVertical: 3, + borderRadius: 4, + }, + ] + } + }, [size]) + + return ( + + + Mutuals + + + ) +} diff --git a/src/components/ProfileCard.tsx b/src/components/ProfileCard.tsx index 17e3677bc..f4917e16b 100644 --- a/src/components/ProfileCard.tsx +++ b/src/components/ProfileCard.tsx @@ -625,6 +625,7 @@ export function Labels({ const moderation = moderateProfile(profile, moderationOpts) const modui = moderation.ui('profileList') const followedBy = profile.viewer?.followedBy + const following = profile.viewer?.following if (!followedBy && !modui.inform && !modui.alert) { return null @@ -632,7 +633,7 @@ export function Labels({ return ( - {followedBy && } + {followedBy && (following ? : )} {modui.alerts.map(alert => ( ))} diff --git a/src/screens/Profile/Header/Handle.tsx b/src/screens/Profile/Header/Handle.tsx index 00d7db08d..9eba87746 100644 --- a/src/screens/Profile/Header/Handle.tsx +++ b/src/screens/Profile/Header/Handle.tsx @@ -39,7 +39,9 @@ export function ProfileHeaderHandle({ {profile.viewer?.followedBy && !blockHide ? ( - Follows you + + {profile.viewer?.following ? 'Mutuals' : 'Follows you'} + ) : undefined} -- 2.52.0