Skip to content

Commit e3af511

Browse files
committed
use avatar attr
1 parent cf1243b commit e3af511

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

site/src/components/GroupAvatar/GroupAvatar.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,7 @@ export const GroupAvatar: FC<GroupAvatarProps> = ({ name, avatarURL }) => {
3838
}}
3939
badgeContent={<Group />}
4040
>
41-
<Avatar>
42-
{avatarURL ? (
43-
<img alt={firstLetter(name)} src={avatarURL} width="100%" />
44-
) : (
45-
firstLetter(name)
46-
)}
47-
</Avatar>
41+
<Avatar alt={name} src={avatarURL} />
4842
</StyledBadge>
4943
)
5044
}

0 commit comments

Comments
 (0)