added tooltip to avatars without avatar
parent
9cfe3e36f2
commit
0bced50f7b
|
@ -984,6 +984,14 @@ export function MyAvatar({
|
|||
userId,
|
||||
}) {
|
||||
const MyDefaultAvatar = () => {
|
||||
if (tooltip) {
|
||||
return (
|
||||
<Tooltip placement="top" trigger="hover" title={tooltipTitle}>
|
||||
<Avatar size={avatarWidth} icon={<UserOutlined />} />
|
||||
</Tooltip>
|
||||
);
|
||||
}
|
||||
|
||||
return <Avatar size={avatarWidth} icon={<UserOutlined />} />;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue