Skip to content

Commit

Permalink
enhancement: Patch on Avatar.tsx to activate name tooltip via title a…
Browse files Browse the repository at this point in the history
…ttribute (#842)
  • Loading branch information
esgn committed Feb 4, 2020
1 parent 3e073e6 commit 74ac88e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/components/common/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ interface AvatarProps {
user: {
role?: UserRole;
avatarURL: string;
name: string;
};
size?: "small" | "normal" | "large";
}
Expand All @@ -21,5 +22,5 @@ export const Avatar = (props: AvatarProps) => {
"m-staff": props.user.role && isCollaborator(props.user.role)
});

return <img className={className} title={name} src={`${props.user.avatarURL}?size=50`} />;
return <img className={className} title={props.user.name} src={`${props.user.avatarURL}?size=50`} />;
};

0 comments on commit 74ac88e

Please sign in to comment.