Collection owner's username links to their sketches page

This commit is contained in:
Andrew Nicolaou 2020-01-15 10:45:50 +01:00
parent a5b62567ef
commit 903550b41c
1 changed files with 3 additions and 1 deletions

View File

@ -221,7 +221,9 @@ class Collection extends React.Component {
}
</p>
<p className="collection-metadata__user">Collection by {owner.username}</p>
<p className="collection-metadata__user">Collection by{' '}
<Link to={`${hostname}/${username}/sketches`}>{owner.username}</Link>
</p>
<p className="collection-metadata__user">{items.length} sketch{items.length === 1 ? '' : 'es'}</p>
</div>