Browse Source

ref(dashboards): Move the metrics search bar into dashboards (#33369)

Dashboards is the only place the metricsSearchBar is used.
Shruthi 2 years ago
parent
commit
b5e6e5bfdc

+ 1 - 1
static/app/components/dashboards/widgetQueriesForm.tsx

@@ -23,8 +23,8 @@ import {
   stripEquationPrefix,
 } from 'sentry/utils/discover/fields';
 import {Widget, WidgetQuery, WidgetType} from 'sentry/views/dashboardsV2/types';
+import MetricsSearchBar from 'sentry/views/dashboardsV2/widgetBuilder/metricWidget/metricsSearchBar';
 import {generateFieldOptions} from 'sentry/views/eventsV2/utils';
-import MetricsSearchBar from 'sentry/views/performance/metricsSearchBar';
 
 import WidgetQueryFields from './widgetQueryFields';
 

+ 1 - 1
static/app/views/dashboardsV2/widgetBuilder/buildSteps/filterResultsStep/releaseSearchBar.tsx

@@ -4,7 +4,7 @@ import {SearchBarProps} from 'sentry/components/events/searchBar';
 import {MAX_QUERY_LENGTH} from 'sentry/constants';
 import {Organization} from 'sentry/types';
 import {WidgetQuery} from 'sentry/views/dashboardsV2/types';
-import MetricsSearchBar from 'sentry/views/performance/metricsSearchBar';
+import MetricsSearchBar from 'sentry/views/dashboardsV2/widgetBuilder/metricWidget/metricsSearchBar';
 
 interface Props {
   onBlur: SearchBarProps['onBlur'];

+ 0 - 0
static/app/views/performance/metricsSearchBar.tsx → static/app/views/dashboardsV2/widgetBuilder/metricWidget/metricsSearchBar.tsx