Skip to content

Commit

Permalink
fix: [Message] use circle avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
akai committed Jul 6, 2022
1 parent d49a0cf commit e397592
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/Message/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ const Message = (props: MessageProps) => {
</div>
)}
<div className="Message-content" role="alert" aria-live="assertive" aria-atomic="false">
{user && user.avatar && (
<Avatar src={user.avatar} shape="square" alt={user.name} url={user.url} />
)}
{user && user.avatar && <Avatar src={user.avatar} alt={user.name} url={user.url} />}
{type === 'typing' ? <Typing /> : renderMessageContent(msg)}
</div>
</div>
Expand Down

0 comments on commit e397592

Please sign in to comment.