forked from abner/for-legacy-web
fix: use shape="circle" for friend component
This commit is contained in:
@@ -36,7 +36,7 @@ export const Friend = observer(({ user }: Props) => {
|
||||
actions.push(
|
||||
<>
|
||||
<IconButton
|
||||
type="circle"
|
||||
shape="circle"
|
||||
className={classNames(styles.button, styles.success)}
|
||||
onClick={(ev) =>
|
||||
stopPropagation(
|
||||
@@ -50,7 +50,7 @@ export const Friend = observer(({ user }: Props) => {
|
||||
<PhoneCall size={20} />
|
||||
</IconButton>
|
||||
<IconButton
|
||||
type="circle"
|
||||
shape="circle"
|
||||
className={styles.button}
|
||||
onClick={(ev) =>
|
||||
stopPropagation(
|
||||
@@ -71,7 +71,7 @@ export const Friend = observer(({ user }: Props) => {
|
||||
if (user.relationship === "Incoming") {
|
||||
actions.push(
|
||||
<IconButton
|
||||
type="circle"
|
||||
shape="circle"
|
||||
className={styles.button}
|
||||
onClick={(ev) => stopPropagation(ev, user.addFriend())}>
|
||||
<Plus size={24} />
|
||||
@@ -92,7 +92,7 @@ export const Friend = observer(({ user }: Props) => {
|
||||
) {
|
||||
actions.push(
|
||||
<IconButton
|
||||
type="circle"
|
||||
shape="circle"
|
||||
className={classNames(
|
||||
styles.button,
|
||||
styles.remove,
|
||||
@@ -118,7 +118,7 @@ export const Friend = observer(({ user }: Props) => {
|
||||
if (user.relationship === "Blocked") {
|
||||
actions.push(
|
||||
<IconButton
|
||||
type="circle"
|
||||
shape="circle"
|
||||
className={classNames(styles.button, styles.error)}
|
||||
onClick={(ev) => stopPropagation(ev, user.unblockUser())}>
|
||||
<UserX size={24} />
|
||||
|
||||
Reference in New Issue
Block a user