feat(UserProfile): add button to cancel outgoing friend request (#461)

This commit is contained in:
Ayyan 2022-01-04 15:11:11 +04:00 committed by GitHub
parent 42771f7137
commit 202a70b91f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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