feat: fixing registry ts errors

This commit is contained in:
kozhuhds
2025-11-17 11:43:57 +01:00
parent e89c83028f
commit f987a33870
2 changed files with 2 additions and 4 deletions
@@ -6,7 +6,7 @@ import {
CommandPaletteDynamicResultAction,
PluginExtensionCommandPaletteContext,
} from '@grafana/data';
import appEvents from 'app/core/app_events';
import { appEvents } from 'app/core/app_events';
import { CloseExtensionSidebarEvent, OpenExtensionSidebarEvent, ToggleExtensionSidebarEvent } from 'app/types/events';
import { commandPaletteDynamicRegistry } from '../../plugins/extensions/registry/setup';
@@ -17,9 +17,7 @@ export const AddedLinksRegistryContext = createContext<AddedLinksRegistry | unde
export const AddedComponentsRegistryContext = createContext<AddedComponentsRegistry | undefined>(undefined);
export const AddedFunctionsRegistryContext = createContext<AddedFunctionsRegistry | undefined>(undefined);
export const ExposedComponentsRegistryContext = createContext<ExposedComponentsRegistry | undefined>(undefined);
export const CommandPaletteDynamicRegistryContext = createContext<CommandPaletteDynamicRegistry | undefined>(
undefined
);
export const CommandPaletteDynamicRegistryContext = createContext<CommandPaletteDynamicRegistry | undefined>(undefined);
export function useAddedLinksRegistry(): AddedLinksRegistry {
const context = useContext(AddedLinksRegistryContext);