mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 17:11:55 +00:00
feat(UserProfile): add button to cancel outgoing friend request (#461)
This commit is contained in:
@@ -3,6 +3,7 @@ import {
|
||||
Envelope,
|
||||
Edit,
|
||||
UserPlus,
|
||||
UserX,
|
||||
Group,
|
||||
InfoCircle,
|
||||
} from "@styled-icons/boxicons-solid";
|
||||
@@ -234,6 +235,11 @@ export const UserProfile = observer(
|
||||
<UserPlus size={28} />
|
||||
</IconButton>
|
||||
)}
|
||||
{user.relationship === RelationshipStatus.Outgoing && (
|
||||
<IconButton onClick={() => user.removeFriend()}>
|
||||
<UserX size={28} />
|
||||
</IconButton>
|
||||
)}
|
||||
</div>
|
||||
<div className={styles.tabs}>
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user