aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webui/src/tag/ImageTag.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/webui/src/tag/ImageTag.js b/webui/src/tag/ImageTag.js
index aea65e9d..b0f0c1c8 100644
--- a/webui/src/tag/ImageTag.js
+++ b/webui/src/tag/ImageTag.js
@@ -7,9 +7,13 @@ const useStyles = makeStyles({
},
});
-const ImageTag = (props) => {
+const ImageTag = ({ alt, ...props }) => {
const classes = useStyles();
- return <img className={classes.tag} {...props} />
+ return (
+ <a href={props.src} target="_blank" rel="noopener noreferrer nofollow">
+ <img className={classes.tag} alt={alt} {...props} />
+ </a>
+ );
};
-export default ImageTag; \ No newline at end of file
+export default ImageTag;