Skip to content

Commit

Permalink
Images are links
Browse files Browse the repository at this point in the history
  • Loading branch information
bessarabov committed Sep 11, 2023
1 parent 684b1d2 commit 9425973
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/multi-graphite.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,14 @@ class MultiGraphite extends React.Component {
var imagesTags = [];
images.forEach(function(el){
imagesTags.push(
<img
src={ el.image_url }
style={{ marginRight: '5px' }}
width={ el.width }
height={ el.height }
/>
<a href={ el.image_url }>
<img
src={ el.image_url }
style={{ marginRight: '5px' }}
width={ el.width }
height={ el.height }
/>
</a>
);
});

Expand Down

0 comments on commit 9425973

Please sign in to comment.