diff --git a/src/extensions/registries/modal-registry.ts b/src/extensions/registries/modal-registry.ts index bdee1f118f..fb9f99c634 100644 --- a/src/extensions/registries/modal-registry.ts +++ b/src/extensions/registries/modal-registry.ts @@ -5,7 +5,6 @@ // Extensions-api -> Cluster frame custom modal registration -import { getInjectionToken } from "@ogre-tools/injectable"; import type { IComputedValue } from "mobx"; export interface ClusterModalRegistration { @@ -14,6 +13,3 @@ export interface ClusterModalRegistration { visible?: IComputedValue; } -export const clusterModalsInjectionToken = getInjectionToken< - IComputedValue ->({ id: "cluster-modals-injection-token" }); diff --git a/src/features/cluster/cluster-modal-items.test.tsx b/src/features/cluster/cluster-modal-items.test.tsx index ccc517a435..c799f6f1d1 100644 --- a/src/features/cluster/cluster-modal-items.test.tsx +++ b/src/features/cluster/cluster-modal-items.test.tsx @@ -7,7 +7,7 @@ import type { RenderResult } from "@testing-library/react"; import { computed, runInAction } from "mobx"; import React from "react"; import type { ClusterModalRegistration } from "../../extensions/registries"; -import { clusterModalsInjectionToken } from "../../extensions/registries"; +import { clusterModalsInjectionToken } from "../../renderer/cluster-modals/cluster-modals-injection-token"; import type { ApplicationBuilder } from "../../renderer/components/test-utils/get-application-builder"; import { getApplicationBuilder } from "../../renderer/components/test-utils/get-application-builder"; diff --git a/src/renderer/cluster-modals/cluster-modals-injection-token.ts b/src/renderer/cluster-modals/cluster-modals-injection-token.ts new file mode 100644 index 0000000000..035e841744 --- /dev/null +++ b/src/renderer/cluster-modals/cluster-modals-injection-token.ts @@ -0,0 +1,12 @@ +/** + * Copyright (c) OpenLens Authors. All rights reserved. + * Licensed under MIT License. See LICENSE in root directory for more information. + */ + +import { getInjectionToken } from "@ogre-tools/injectable"; +import type { IComputedValue } from "mobx"; +import type { ClusterModalRegistration } from "../../extensions/registries"; + +export const clusterModalsInjectionToken = getInjectionToken< + IComputedValue +>({ id: "cluster-modals-injection-token" }); \ No newline at end of file diff --git a/src/renderer/cluster-modals/cluster-modals.injectable.ts b/src/renderer/cluster-modals/cluster-modals.injectable.ts index 61d9c56c2f..8b0cf97682 100644 --- a/src/renderer/cluster-modals/cluster-modals.injectable.ts +++ b/src/renderer/cluster-modals/cluster-modals.injectable.ts @@ -8,7 +8,7 @@ import { computedInjectManyInjectable } from "@ogre-tools/injectable-extension-f import { flatMap } from "lodash/fp"; import type { IComputedValue } from "mobx"; import type { ClusterModalRegistration } from "../../extensions/registries"; -import { clusterModalsInjectionToken } from "../../extensions/registries"; +import { clusterModalsInjectionToken } from "./cluster-modals-injection-token"; const clusterModalsInjectable = getInjectable({ id: "cluster-modals",