We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
user.url
1 parent 29eacf4 commit 069664fCopy full SHA for 069664f
src/components/Message/Message.tsx
@@ -9,6 +9,7 @@ import { Typing } from '../Typing';
9
export interface User {
10
avatar?: string;
11
name?: string;
12
+ url?: string;
13
[k: string]: any;
14
}
15
@@ -69,7 +70,9 @@ const Message = (props: MessageProps) => {
69
70
</div>
71
)}
72
<div className="Message-content" role="alert" aria-live="assertive" aria-atomic="false">
- {user && user.avatar && <Avatar src={user.avatar} shape="square" alt={user.name} />}
73
+ {user && user.avatar && (
74
+ <Avatar src={user.avatar} shape="square" alt={user.name} url={user.url} />
75
+ )}
76
{type === 'typing' ? <Typing /> : renderMessageContent(msg)}
77
78
0 commit comments