mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-10 01:03:36 -05:00
feat(UserProfile): add button to cancel outgoing friend request (#461)
This commit is contained in:
parent
42771f7137
commit
202a70b91f
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue