Chore: Upgrade eslint packages (#31408)

This commit is contained in:
Zoltán Bedi
2021-02-23 10:02:07 +01:00
committed by GitHub
parent 6a4880ad14
commit 67c215f5f1
5 changed files with 205 additions and 240 deletions

View File

@@ -47,6 +47,7 @@ export const DashboardLinks: FC<Props> = ({ dashboard, links }) => {
className="gf-form-label gf-form-label--dashlink"
href={sanitizeUrl(linkInfo.href)}
target={link.targetBlank ? '_blank' : undefined}
rel="noreferrer"
aria-label={selectors.components.DashboardLinks.link}
>
<Icon name={iconMap[link.icon] as IconName} style={{ marginRight: '4px' }} />

View File

@@ -41,6 +41,7 @@ export const DashboardLinksDashboard: React.FC<Props> = (props) => {
<a
href={resolvedLink.url}
target={link.targetBlank ? '_blank' : undefined}
rel="noreferrer"
aria-label={selectors.components.DashboardLinks.link}
>
{resolvedLink.title}
@@ -68,6 +69,7 @@ export const DashboardLinksDashboard: React.FC<Props> = (props) => {
className="gf-form-label gf-form-label--dashlink"
href={resolvedLink.url}
target={link.targetBlank ? '_blank' : undefined}
rel="noreferrer"
aria-label={selectors.components.DashboardLinks.link}
>
<Icon name="apps" style={{ marginRight: '4px' }} />