Skip to content

fix(site): show user avatar on group page #8997

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(site): show user avatar on group page
  • Loading branch information
BrunoQuaresma committed Aug 9, 2023
commit 480069d1cd0c991743f866910fbc81ab980bbf13
1 change: 0 additions & 1 deletion site/src/components/UserAvatar/UserAvatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export type UserAvatarProps = {
export const UserAvatar: FC<UserAvatarProps> = ({
username,
avatarURL,

...avatarProps
}) => {
return (
Expand Down
7 changes: 7 additions & 0 deletions site/src/pages/GroupsPage/GroupPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}
/>
Expand Down