Skip to content

Commit

Permalink
simplify profile link
Browse files Browse the repository at this point in the history
  • Loading branch information
echenley committed Sep 17, 2015
1 parent d3998b7 commit 6cec142
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/js/components/ProfileLink.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ const ProfileLink = React.createClass({
let gravatarURI = 'http://www.gravatar.com/avatar/' + md5hash + '?d=mm';

return (
<span className="user-info">
<Link to={ `/user/${username}` } className="profile-link">
<span className="username">{ username }</span>
<img src={ gravatarURI } className="profile-pic" />
</Link>
</span>
<Link to={ `/user/${username}` } className="profile-link">
<span className="username">{ username }</span>
<img src={ gravatarURI } className="profile-pic" />
</Link>
);
}
});
Expand Down

0 comments on commit 6cec142

Please sign in to comment.