Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
feat: diable @material-ui Avatar fallback icon
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnygleason committed Jan 2, 2020
1 parent 4cf51db commit ba17af7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/v2/components/UI/Avatar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,15 @@ const Avatar = ({
backgroundPosition: `${x}px ${y}px`,
};

return <BaseAvatar src={avatarUrl} style={avatarStyle} />;
return (
<BaseAvatar src={avatarUrl} style={avatarStyle}>
{
// explicit 'empty child' node to disable Avatar fallback
// see : https://github.com/mui-org/material-ui/pull/18711
' '
}
</BaseAvatar>
);
};

export default observer(Avatar);

0 comments on commit ba17af7

Please sign in to comment.