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

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>