Update DashboardLinks.tsx

This commit is contained in:
Kamal Galrani 2020-05-17 21:15:52 +05:30 committed by GitHub
parent 335234c661
commit 2b23db8dc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,11 +25,7 @@ export const DashboardLinks: FC<Props> = ({ dashboard }) => {
}
const linkElement = (
<a
className="gf-form-label"
href={sanitizeUrl(linkInfo.href)}
target={link.targetBlank ? '_blank' : '_self'}
>
<a className="gf-form-label" href={sanitizeUrl(linkInfo.href)} target={link.target}>
<Icon name={iconMap[link.icon] as IconName} />
<span>{sanitize(linkInfo.title)}</span>
</a>