Skip to content

feat: add avatar urls to groups #4525

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 16 commits into from
Oct 17, 2022
Prev Previous commit
Next Next commit
use avatar attr
  • Loading branch information
sreya committed Oct 14, 2022
commit e3af511b64c991c93e3677f695ec1c6d8274a6e3
8 changes: 1 addition & 7 deletions site/src/components/GroupAvatar/GroupAvatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,7 @@ export const GroupAvatar: FC<GroupAvatarProps> = ({ name, avatarURL }) => {
}}
badgeContent={<Group />}
>
<Avatar>
{avatarURL ? (
<img alt={firstLetter(name)} src={avatarURL} width="100%" />
) : (
firstLetter(name)
)}
</Avatar>
<Avatar alt={name} src={avatarURL} />
</StyledBadge>
)
}