From 5ab8d6a3b98d36372822826f31f5cb65c99c8a31 Mon Sep 17 00:00:00 2001 From: Domas Date: Mon, 16 Aug 2021 10:12:07 +0300 Subject: [PATCH] remove guideliens form rule list state table (#37839) --- .../alerting/unified/components/rules/RulesTable.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/app/features/alerting/unified/components/rules/RulesTable.tsx b/public/app/features/alerting/unified/components/rules/RulesTable.tsx index ce59280e7d2..95c2a931b64 100644 --- a/public/app/features/alerting/unified/components/rules/RulesTable.tsx +++ b/public/app/features/alerting/unified/components/rules/RulesTable.tsx @@ -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; @@ -57,9 +57,11 @@ export const RulesTable: FC = ({ return
{emptyMessage}
; } + const TableComponent = showGuidelines ? DynamicTableWithGuidelines : DynamicTable; + return (
-