Skip to content

Commit

Permalink
remove follow button on profile when blocked
Browse files Browse the repository at this point in the history
  • Loading branch information
AmarTrebinjac committed Jan 17, 2025
1 parent 6639d50 commit fc15e64
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions packages/shared/src/components/profile/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,15 @@ export function Header({
target={TargetId.MyProfile}
/>
)}
<FollowButton
entityId={user.id}
type={ContentPreferenceType.User}
status={contentPreference?.status}
entityName={`@${user.username}`}
className="flex-row-reverse"
/>
{!blocked && (
<FollowButton
entityId={user.id}
type={ContentPreferenceType.User}
status={contentPreference?.status}
entityName={`@${user.username}`}
className="flex-row-reverse"
/>
)}
{!isSameUser && (
<CustomFeedOptionsMenu
onAdd={(feedId) =>
Expand Down

0 comments on commit fc15e64

Please sign in to comment.