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:
parent
f4a4f02c9b
commit
25e8e60439
2 changed files with 4 additions and 4 deletions
|
@ -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>
|
||||
);
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue