mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(site): show user avatar on group page (#8997)
This commit is contained in:
@@ -9,7 +9,6 @@ export type UserAvatarProps = {
|
||||
export const UserAvatar: FC<UserAvatarProps> = ({
|
||||
username,
|
||||
avatarURL,
|
||||
|
||||
...avatarProps
|
||||
}) => {
|
||||
return (
|
||||
|
||||
@@ -34,6 +34,7 @@ import { groupMachine } from "xServices/groups/groupXService"
|
||||
import { Maybe } from "components/Conditionals/Maybe"
|
||||
import { makeStyles } from "@mui/styles"
|
||||
import { PaginationStatus } from "components/PaginationStatus/PaginationStatus"
|
||||
import { UserAvatar } from "components/UserAvatar/UserAvatar"
|
||||
|
||||
const AddGroupMember: React.FC<{
|
||||
isLoading: boolean
|
||||
@@ -188,6 +189,12 @@ export const GroupPage: React.FC = () => {
|
||||
<TableRow key={member.id}>
|
||||
<TableCell width="99%">
|
||||
<AvatarData
|
||||
avatar={
|
||||
<UserAvatar
|
||||
username={member.username}
|
||||
avatarURL={member.avatar_url}
|
||||
/>
|
||||
}
|
||||
title={member.username}
|
||||
subtitle={member.email}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user