mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Add onClick behaviour to links to new tooltips (#84974)
* Add onClick behaviour to new tooltips * Prefer using DataLink component
This commit is contained in:
parent
0582e05f8f
commit
9e54c450d7
@ -2,7 +2,7 @@ import { css } from '@emotion/css';
|
||||
import React from 'react';
|
||||
|
||||
import { GrafanaTheme2, LinkModel } from '@grafana/data';
|
||||
import { LinkButton, useStyles2 } from '@grafana/ui';
|
||||
import { DataLinkButton, useStyles2 } from '@grafana/ui';
|
||||
import { VizTooltipRow } from '@grafana/ui/src/components/VizTooltip/VizTooltipRow';
|
||||
import { renderValue } from 'app/plugins/panel/geomap/utils/uiUtils';
|
||||
|
||||
@ -42,9 +42,7 @@ export const ExemplarHoverView = ({ displayValues, links, header = 'Exemplar' }:
|
||||
{links && links.length > 0 && (
|
||||
<div className={styles.exemplarFooter}>
|
||||
{links.map((link, i) => (
|
||||
<LinkButton key={i} href={link.href} className={styles.linkButton}>
|
||||
{link.title}
|
||||
</LinkButton>
|
||||
<DataLinkButton link={link} key={i} buttonProps={{ size: 'md' }} />
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
|
Loading…
Reference in New Issue
Block a user