Skip to content

Commit

Permalink
feat(web-ui): use profile avatar in organization member list (#853)
Browse files Browse the repository at this point in the history
Co-authored-by: Johan Book <{ID}+{username}@users.noreply.github.com>
  • Loading branch information
johanbook and Johan Book authored Jul 14, 2024
1 parent 0578a7b commit 7e38190
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { ReactElement } from "react";
import { Link } from "react-router-dom";

import {
Avatar,
Box,
List,
ListItem,
Expand All @@ -14,6 +13,7 @@ import {
} from "@mui/material";

import { organizationsApi } from "src/apis";
import { ProfileAvatar } from "src/components/ProfileAvatar";
import { Button } from "src/components/ui";
import { ErrorMessage } from "src/components/ui/ErrorMessage";
import { Permissions, useAuthorization } from "src/core/authorization";
Expand Down Expand Up @@ -77,7 +77,7 @@ export function OrganizationMembers(): ReactElement {
to={`/profile/${member.profileId}`}
>
<ListItemAvatar>
<Avatar src={member.imageUrl} />
<ProfileAvatar name={member.name} src={member.imageUrl} />
</ListItemAvatar>
<ListItemText
primary={
Expand Down

0 comments on commit 7e38190

Please sign in to comment.