added tooltip to avatars without avatar

main
alex 2023-06-27 20:52:39 +02:00
parent 9cfe3e36f2
commit 0bced50f7b
1 changed files with 8 additions and 0 deletions

View File

@ -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 />} />;
};