Files
grafana/public/app/features/alerting/unified/components/InfoIcon.tsx
Sonia Aguilar c8f87f4413 Alerting: Improving group modal with validation on evaluation interval (#57830)
* 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
2022-11-03 12:50:32 +01:00

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>
);
}