feat: fixing registry ts errors
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user