Read target prop from the links in the footer (#22074)

* Grafana-core: Read target prop from the links in footer instead of having them hardcoded

* Grafana-core: Update ServerStats snapshot
This commit is contained in:
Alex Khomenko 2020-02-11 14:00:06 +02:00 committed by GitHub
parent 3b86bc97ea
commit e07e03c26d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -68,7 +68,7 @@ export const Footer: FC = React.memo(() => {
<ul> <ul>
{links.map(link => ( {links.map(link => (
<li key={link.text}> <li key={link.text}>
<a href={link.url} target="_blank" rel="noopener"> <a href={link.url} target={link.target} rel="noopener">
<i className={link.icon} /> {link.text} <i className={link.icon} /> {link.text}
</a> </a>
</li> </li>

View File

@ -199,7 +199,6 @@ exports[`ServerStats Should render table with stats 1`] = `
<li> <li>
<a <a
rel="noopener" rel="noopener"
target="_blank"
> >
<i /> <i />
@ -209,7 +208,6 @@ exports[`ServerStats Should render table with stats 1`] = `
<li> <li>
<a <a
rel="noopener" rel="noopener"
target="_blank"
> >
<i /> <i />