Skip to content
This repository has been archived by the owner on Jan 5, 2019. It is now read-only.

Commit

Permalink
add link to ResultsTable thumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
rococodogs committed Jan 13, 2017
1 parent 0bceeb0 commit 9e93faa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/catalog/ResultsTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ class ResultsTable extends React.Component {
id: 'thumbnail_path',

// TODO: a11y updates
renderer: path => <img src={this.getThumbnailPath(path)} />,
renderer: (path, _, rowData) => (
<a href={`/works/${rowData.id}`}>
<img src={this.getThumbnailPath(path)} />
</a>
),

thClassName: 'field-select',

Expand Down

0 comments on commit 9e93faa

Please sign in to comment.