mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* Show rules list for the group with the For duration, and add validation for keeping all rules in the same group with a valid For * Sort rules by For duration * Add number evaluations column in alert list * Add Error badge in column #evaluations in case of invalid For * Add test for getNumberEvaluationsToStartAlerting method * Move re-usable new InfoIcon component into a separate file in unified components folder * Add edge case for getNumberEvaluationsToStartAlerting method, and change some namings
12 lines
264 B
TypeScript
12 lines
264 B
TypeScript
import React from 'react';
|
|
|
|
import { Icon, Tooltip } from '@grafana/ui';
|
|
|
|
export function InfoIcon({ text }: { text: string }) {
|
|
return (
|
|
<Tooltip placement="top" content={<div>{text}</div>}>
|
|
<Icon name="info-circle" size="xs" />
|
|
</Tooltip>
|
|
);
|
|
}
|