mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-22 15:10:57 -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;
|
padding: 0 8px 8px 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.call {
|
.remove {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue