mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-27 22:59:51 -05:00
Merge pull request #808 from DanielRuf/fix/open-external-links-in-new-tabs
fix: open external tabs in new tabs
This commit is contained in:
commit
7739141148
2 changed files with 4 additions and 4 deletions
|
@ -184,9 +184,9 @@ class Index extends React.Component {
|
||||||
.filter(user => {
|
.filter(user => {
|
||||||
return user.pinned;
|
return user.pinned;
|
||||||
})
|
})
|
||||||
.map(user => {
|
.map((user, i) => {
|
||||||
return (
|
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} />
|
<img src={user.image} alt={user.caption} title={user.caption} />
|
||||||
</a>
|
</a>
|
||||||
);
|
);
|
||||||
|
|
|
@ -17,8 +17,8 @@ class Users extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
const showcase = siteConfig.users.map((user, i) => {
|
const showcase = siteConfig.users.map((user, i) => {
|
||||||
return (
|
return (
|
||||||
<a href={user.infoLink} key={i}>
|
<a href={user.infoLink} key={i} target="_blank" rel="noopener">
|
||||||
<img src={user.image} title={user.caption} />
|
<img src={user.image} alt={user.caption} title={user.caption} />
|
||||||
</a>
|
</a>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue