Skip to content

Commit

Permalink
Remove 'remove friend' button on other users friends lists
Browse files Browse the repository at this point in the history
  • Loading branch information
MaoShizhong committed Dec 30, 2023
1 parent 9c2b44b commit 6e2e7cb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/components/profile/Friends.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,13 @@ export function Friends({ friendsList, setFriendsList, isOwnProfile }) {
{getFullNameFromDetails(friend.user)}
</Link>

<RemoveFriend
userID={friend.user._id}
setFriendsList={setFriendsList}
page="friends"
/>
{isOwnProfile && (
<RemoveFriend
userID={friend.user._id}
setFriendsList={setFriendsList}
page="friends"
/>
)}
</div>
))}
</div>
Expand Down

0 comments on commit 6e2e7cb

Please sign in to comment.