remove guideliens form rule list state table (#37839) (#37915)

(cherry picked from commit 5ab8d6a3b9)

Co-authored-by: Domas <domas.lapinskas@grafana.com>
This commit is contained in:
Grot (@grafanabot)andDomas authored and GitHub committed 2021-08-16 09:45:46 +02:00
1 parent 9bed8070ae
commit 95b407e39a
1 file changed
+4 -2
@@ -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}