Skip to content

Commit

Permalink
Merge pull request #532 from bookbrainz/email-link-in-profile
Browse files Browse the repository at this point in the history
feat(editor): Add "send email" link to user profile
  • Loading branch information
MonkeyDo committed Nov 12, 2020
2 parents 7d38a27 + ecabf5c commit 390dd93
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/client/components/pages/parts/editor-profile.js
Expand Up @@ -54,9 +54,19 @@ class EditorProfileTab extends React.Component {
let musicbrainzAccount = 'No Linked MusicBrainz Account';
if (cachedMetabrainzName) {
musicbrainzAccount = (
<a href={`http://musicbrainz.org/user/${cachedMetabrainzName}`}>
{cachedMetabrainzName}
</a>
<span>
<a href={`http://musicbrainz.org/user/${cachedMetabrainzName}`}>
{cachedMetabrainzName}
</a>
&nbsp;(
<a
href={`http://musicbrainz.org/user/${cachedMetabrainzName}/contact`}
rel="noopener noreferrer"
target="_blank"
>
send email <FontAwesomeIcon icon="external-link-alt"/>
</a>)
</span>
);
}
else if (metabrainzUserId) {
Expand Down

0 comments on commit 390dd93

Please sign in to comment.