From 689639cdb060f87f1689505c85d199dbc61d6ef1 Mon Sep 17 00:00:00 2001 From: Kevin Yu Date: Thu, 7 Jul 2022 01:29:32 -0700 Subject: [PATCH] CloudMonitoring: Update AnnotationQueryEditor to use experimental UI components (#51841) --- .../components/AnnotationQueryEditor.tsx | 73 +++++++++++-------- 1 file changed, 44 insertions(+), 29 deletions(-) diff --git a/public/app/plugins/datasource/cloud-monitoring/components/AnnotationQueryEditor.tsx b/public/app/plugins/datasource/cloud-monitoring/components/AnnotationQueryEditor.tsx index 76fa6c02b4e..b9445beced0 100644 --- a/public/app/plugins/datasource/cloud-monitoring/components/AnnotationQueryEditor.tsx +++ b/public/app/plugins/datasource/cloud-monitoring/components/AnnotationQueryEditor.tsx @@ -2,6 +2,7 @@ import React, { useState } from 'react'; import { useDebounce } from 'react-use'; import { QueryEditorProps, toOption } from '@grafana/data'; +import { EditorField, EditorRows, EditorRow } from '@grafana/experimental'; import { config } from '@grafana/runtime'; import { Input } from '@grafana/ui'; @@ -79,38 +80,52 @@ export const AnnotationQueryEditor = (props: Props) => { ); return ( - <> + {config.featureToggles.cloudMonitoringExperimentalUI ? ( - + <> + + + + + + + + + + + + + + ) : ( - + <> + + + + + + + + + )} - - - - - - - - - - + ); };