0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-27 22:59:51 -05:00

fix: open external tabs in new tabs

This commit is contained in:
Daniel Ruf 2018-07-07 23:22:25 +02:00
parent f4a4f02c9b
commit 25e8e60439
No known key found for this signature in database
GPG key ID: 68597EDC4FAC1299
2 changed files with 4 additions and 4 deletions

View file

@ -184,9 +184,9 @@ class Index extends React.Component {
.filter(user => {
return user.pinned;
})
.map(user => {
.map((user, i) => {
return (
<a href={user.infoLink}>
<a href={user.infoLink} key={i} target="_blank" rel="noopener">
<img src={user.image} alt={user.caption} title={user.caption} />
</a>
);

View file

@ -17,8 +17,8 @@ class Users extends React.Component {
render() {
const showcase = siteConfig.users.map((user, i) => {
return (
<a href={user.infoLink} key={i}>
<img src={user.image} title={user.caption} />
<a href={user.infoLink} key={i} target="_blank" rel="noopener">
<img src={user.image} alt={user.caption} title={user.caption} />
</a>
);
});