From 95b407e39a05e36c45560de054ff2eb9630518d7 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Mon, 16 Aug 2021 03:45:46 -0400 Subject: [PATCH] remove guideliens form rule list state table (#37839) (#37915) (cherry picked from commit 5ab8d6a3b98d36372822826f31f5cb65c99c8a31) Co-authored-by: Domas --- .../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 (
-