mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-10 01:03:36 -05:00
Fixed friends menu
This commit is contained in:
parent
5f8ee9d656
commit
f9cc96c7f3
2 changed files with 4 additions and 5 deletions
|
@ -191,7 +191,7 @@
|
|||
padding: 0 8px 8px 8px;
|
||||
}
|
||||
|
||||
.call {
|
||||
.remove {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { X, Plus } from "@styled-icons/boxicons-regular";
|
||||
import { PhoneCall, Envelope } from "@styled-icons/boxicons-solid";
|
||||
import { PhoneCall, Envelope, UserX } from "@styled-icons/boxicons-solid";
|
||||
import { User, Users } from "revolt.js/dist/api/objects";
|
||||
|
||||
import styles from "./Friend.module.scss";
|
||||
|
@ -44,7 +44,6 @@ export function Friend({ user }: Props) {
|
|||
type="circle"
|
||||
className={classNames(
|
||||
styles.button,
|
||||
styles.call,
|
||||
styles.success,
|
||||
)}
|
||||
onClick={(ev) =>
|
||||
|
@ -89,7 +88,7 @@ export function Friend({ user }: Props) {
|
|||
actions.push(
|
||||
<IconButton
|
||||
type="circle"
|
||||
className={classNames(styles.button, styles.error)}
|
||||
className={classNames(styles.button, styles.remove, styles.error)}
|
||||
onClick={(ev) =>
|
||||
stopPropagation(
|
||||
ev,
|
||||
|
@ -115,7 +114,7 @@ export function Friend({ user }: Props) {
|
|||
onClick={(ev) =>
|
||||
stopPropagation(ev, client.users.unblockUser(user._id))
|
||||
}>
|
||||
<X size={24} />
|
||||
<UserX size={24} />
|
||||
</IconButton>,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue