From 00c93fff8c0d0ad5c500983f9279c89a58dfcad7 Mon Sep 17 00:00:00 2001 From: Joao Silva <100691367+JoaoSilvaGrafana@users.noreply.github.com> Date: Tue, 15 Mar 2022 17:50:29 +0000 Subject: [PATCH] Grafana-UI: Fix use of Fragments as children of InlineField (#46326) --- .../DataSourceSettings/CertificationKey.tsx | 25 +++++++++++-------- .../components/SubMenu/AnnotationPicker.tsx | 16 ++++++------ .../panel/geomap/editor/StyleRuleEditor.tsx | 9 +++++-- 3 files changed, 29 insertions(+), 21 deletions(-) diff --git a/packages/grafana-ui/src/components/DataSourceSettings/CertificationKey.tsx b/packages/grafana-ui/src/components/DataSourceSettings/CertificationKey.tsx index 1b8406ca8ff..56e238464a8 100644 --- a/packages/grafana-ui/src/components/DataSourceSettings/CertificationKey.tsx +++ b/packages/grafana-ui/src/components/DataSourceSettings/CertificationKey.tsx @@ -3,6 +3,7 @@ import { Input } from '../Input/Input'; import { Button } from '../Button'; import { TextArea } from '../TextArea/TextArea'; import { InlineField } from '../Forms/InlineField'; +import { InlineFieldRow } from '../Forms/InlineFieldRow'; interface Props { label: string; @@ -15,17 +16,19 @@ interface Props { export const CertificationKey: FC = ({ hasCert, label, onChange, onClick, placeholder }) => { return ( - - {hasCert ? ( - <> - - - - ) : ( -