chore: remove LegacyForms from MetricSelect component (#76490)

This commit is contained in:
Daniel Benjamin 2023-10-27 11:41:04 +01:00 committed by GitHub
parent 9ad26e4f39
commit 8ba6dc866d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,10 +1,9 @@
import { flatten } from 'lodash';
import React, { useMemo, useCallback } from 'react';
import React, { useCallback, useMemo } from 'react';
import { SelectableValue } from '@grafana/data';
import { LegacyForms } from '@grafana/ui';
import { Select } from '@grafana/ui';
import { Variable } from 'app/types/templates';
const { Select } = LegacyForms;
export interface Props {
onChange: (value: string | undefined) => void;
@ -33,7 +32,7 @@ export const MetricSelect = (props: Props) => {
isSearchable={isSearchable}
maxMenuHeight={500}
placeholder={placeholder}
noOptionsMessage={() => 'No options found'}
noOptionsMessage="No options found"
value={selected}
/>
);