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:
@@ -9,7 +9,7 @@ import { CombinedRule } from 'app/types/unified-alerting';
|
|||||||
import { Annotation } from '../../utils/constants';
|
import { Annotation } from '../../utils/constants';
|
||||||
import { RuleState } from './RuleState';
|
import { RuleState } from './RuleState';
|
||||||
import { RuleHealth } from './RuleHealth';
|
import { RuleHealth } from './RuleHealth';
|
||||||
import { DynamicTableColumnProps, DynamicTableItemProps } from '../DynamicTable';
|
import { DynamicTable, DynamicTableColumnProps, DynamicTableItemProps } from '../DynamicTable';
|
||||||
import { DynamicTableWithGuidelines } from '../DynamicTableWithGuidelines';
|
import { DynamicTableWithGuidelines } from '../DynamicTableWithGuidelines';
|
||||||
|
|
||||||
type RuleTableColumnProps = DynamicTableColumnProps<CombinedRule>;
|
type RuleTableColumnProps = DynamicTableColumnProps<CombinedRule>;
|
||||||
@@ -57,9 +57,11 @@ export const RulesTable: FC<Props> = ({
|
|||||||
return <div className={cx(wrapperClass, styles.emptyMessage)}>{emptyMessage}</div>;
|
return <div className={cx(wrapperClass, styles.emptyMessage)}>{emptyMessage}</div>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const TableComponent = showGuidelines ? DynamicTableWithGuidelines : DynamicTable;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={wrapperClass} data-testid="rules-table">
|
<div className={wrapperClass} data-testid="rules-table">
|
||||||
<DynamicTableWithGuidelines
|
<TableComponent
|
||||||
cols={columns}
|
cols={columns}
|
||||||
isExpandable={true}
|
isExpandable={true}
|
||||||
items={items}
|
items={items}
|
||||||
|
|||||||
Reference in New Issue
Block a user