PanelHeaderMenu: Use UI/Menu component (#63040)

This commit is contained in:
kay delaney
2023-02-24 04:23:56 +00:00
committed by GitHub
parent e77621649d
commit 36e474d109
14 changed files with 84 additions and 88 deletions

View File

@@ -12,6 +12,7 @@ import { LoadingState, PreferredVisualisationType } from './data';
import { DataFrame, FieldType } from './dataFrame';
import { DataQueryError, DataQueryRequest, DataQueryTimings } from './datasource';
import { FieldConfigSource } from './fieldOverrides';
import { IconName } from './icon';
import { OptionEditorConfig } from './options';
import { PluginMeta } from './plugin';
import { AbsoluteTimeRange, TimeRange, TimeZone } from './time';
@@ -156,7 +157,7 @@ export interface PanelOptionsEditorConfig<TOptions, TSettings = any, TValue = an
export interface PanelMenuItem {
type?: 'submenu' | 'divider';
text: string;
iconClassName?: string;
iconClassName?: IconName;
onClick?: (event: React.MouseEvent<any>) => void;
shortcut?: string;
href?: string;