mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
remove guideliens form rule list state table (#37839)
This commit is contained in:
parent
db2e0d46b7
commit
5ab8d6a3b9
@ -9,7 +9,7 @@ import { CombinedRule } from 'app/types/unified-alerting';
|
||||
import { Annotation } from '../../utils/constants';
|
||||
import { RuleState } from './RuleState';
|
||||
import { RuleHealth } from './RuleHealth';
|
||||
import { DynamicTableColumnProps, DynamicTableItemProps } from '../DynamicTable';
|
||||
import { DynamicTable, DynamicTableColumnProps, DynamicTableItemProps } from '../DynamicTable';
|
||||
import { DynamicTableWithGuidelines } from '../DynamicTableWithGuidelines';
|
||||
|
||||
type RuleTableColumnProps = DynamicTableColumnProps<CombinedRule>;
|
||||
@ -57,9 +57,11 @@ export const RulesTable: FC<Props> = ({
|
||||
return <div className={cx(wrapperClass, styles.emptyMessage)}>{emptyMessage}</div>;
|
||||
}
|
||||
|
||||
const TableComponent = showGuidelines ? DynamicTableWithGuidelines : DynamicTable;
|
||||
|
||||
return (
|
||||
<div className={wrapperClass} data-testid="rules-table">
|
||||
<DynamicTableWithGuidelines
|
||||
<TableComponent
|
||||
cols={columns}
|
||||
isExpandable={true}
|
||||
items={items}
|
||||
|
Loading…
Reference in New Issue
Block a user