Fixed friends menu

This commit is contained in:
nizune 2021-07-09 15:02:04 +02:00
parent 5f8ee9d656
commit f9cc96c7f3
2 changed files with 4 additions and 5 deletions

View file

@ -191,7 +191,7 @@
padding: 0 8px 8px 8px; padding: 0 8px 8px 8px;
} }
.call { .remove {
display: none; display: none;
} }
} }

View file

@ -1,5 +1,5 @@
import { X, Plus } from "@styled-icons/boxicons-regular"; 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 { User, Users } from "revolt.js/dist/api/objects";
import styles from "./Friend.module.scss"; import styles from "./Friend.module.scss";
@ -44,7 +44,6 @@ export function Friend({ user }: Props) {
type="circle" type="circle"
className={classNames( className={classNames(
styles.button, styles.button,
styles.call,
styles.success, styles.success,
)} )}
onClick={(ev) => onClick={(ev) =>
@ -89,7 +88,7 @@ export function Friend({ user }: Props) {
actions.push( actions.push(
<IconButton <IconButton
type="circle" type="circle"
className={classNames(styles.button, styles.error)} className={classNames(styles.button, styles.remove, styles.error)}
onClick={(ev) => onClick={(ev) =>
stopPropagation( stopPropagation(
ev, ev,
@ -115,7 +114,7 @@ export function Friend({ user }: Props) {
onClick={(ev) => onClick={(ev) =>
stopPropagation(ev, client.users.unblockUser(user._id)) stopPropagation(ev, client.users.unblockUser(user._id))
}> }>
<X size={24} /> <UserX size={24} />
</IconButton>, </IconButton>,
); );
} }