mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-26 23:42:11 -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,
|
Envelope,
|
||||||
Edit,
|
Edit,
|
||||||
UserPlus,
|
UserPlus,
|
||||||
|
UserX,
|
||||||
Group,
|
Group,
|
||||||
InfoCircle,
|
InfoCircle,
|
||||||
} from "@styled-icons/boxicons-solid";
|
} from "@styled-icons/boxicons-solid";
|
||||||
|
@ -234,6 +235,11 @@ export const UserProfile = observer(
|
||||||
<UserPlus size={28} />
|
<UserPlus size={28} />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
)}
|
)}
|
||||||
|
{user.relationship === RelationshipStatus.Outgoing && (
|
||||||
|
<IconButton onClick={() => user.removeFriend()}>
|
||||||
|
<UserX size={28} />
|
||||||
|
</IconButton>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.tabs}>
|
<div className={styles.tabs}>
|
||||||
<div
|
<div
|
||||||
|
|
Loading…
Reference in a new issue