diff --git a/packages/core/src/renderer/components/drawer/drawer.tsx b/packages/core/src/renderer/components/drawer/drawer.tsx index 00bc524549..b56b3378a1 100644 --- a/packages/core/src/renderer/components/drawer/drawer.tsx +++ b/packages/core/src/renderer/components/drawer/drawer.tsx @@ -16,7 +16,7 @@ import { Animate } from "../animate"; import { ResizeDirection, ResizeGrowthDirection, ResizeSide, ResizingAnchor } from "../resizing-anchor"; import drawerStorageInjectable, { defaultDrawerWidth } from "./drawer-storage/drawer-storage.injectable"; import { withInjectables } from "@ogre-tools/injectable-react"; -import { observableHistoryInjectable } from "@k8slens/routing"; +import { historyInjectable } from "@k8slens/routing"; import type { History } from "history"; import type { StorageLayer } from "../../utils/storage-helper"; @@ -251,7 +251,7 @@ class NonInjectedDrawer extends React.Component(NonInjectedDrawer as React.ElementType, { getProps: (di, props) => ({ ...props, - history: di.inject(observableHistoryInjectable), + history: di.inject(historyInjectable), drawerStorage: di.inject(drawerStorageInjectable), }), }); diff --git a/packages/core/src/renderer/components/test-utils/get-application-builder.tsx b/packages/core/src/renderer/components/test-utils/get-application-builder.tsx index d8c3cdd465..cd471c59e2 100644 --- a/packages/core/src/renderer/components/test-utils/get-application-builder.tsx +++ b/packages/core/src/renderer/components/test-utils/get-application-builder.tsx @@ -24,7 +24,7 @@ import navigateToHelmChartsInjectable from "../../../common/front-end-routing/ro import hostedClusterInjectable from "../../cluster-frame-context/hosted-cluster.injectable"; import { Cluster } from "../../../common/cluster/cluster"; import type { NamespaceStore } from "../+namespaces/store"; -import { observableHistoryInjectable } from "@k8slens/routing"; +import { historyInjectable } from "@k8slens/routing"; import type { MinimalTrayMenuItem } from "../../../main/tray/electron-tray/electron-tray.injectable"; import electronTrayInjectable from "../../../main/tray/electron-tray/electron-tray.injectable"; import { getDiForUnitTesting as getRendererDi } from "../../getDiForUnitTesting"; @@ -292,7 +292,7 @@ export const getApplicationBuilder = () => { await callback({ windowDi }); } - const history = windowDi.inject(observableHistoryInjectable); + const history = windowDi.inject(historyInjectable); const render = renderFor(windowDi); diff --git a/packages/core/src/renderer/frames/cluster-frame/cluster-frame.test.tsx b/packages/core/src/renderer/frames/cluster-frame/cluster-frame.test.tsx index 3ca12a6eea..1d68aa6466 100644 --- a/packages/core/src/renderer/frames/cluster-frame/cluster-frame.test.tsx +++ b/packages/core/src/renderer/frames/cluster-frame/cluster-frame.test.tsx @@ -12,7 +12,7 @@ import { DiContextProvider } from "@ogre-tools/injectable-react"; import { Router } from "react-router"; import { DefaultProps } from "../../mui-base-theme"; import { ClusterFrame } from "./cluster-frame"; -import { observableHistoryInjectable } from "@k8slens/routing"; +import { historyInjectable } from "@k8slens/routing"; import { computed } from "mobx"; import { Cluster } from "../../../common/cluster/cluster"; import subscribeStoresInjectable from "../../kube-watch-api/subscribe-stores.injectable"; @@ -34,7 +34,7 @@ describe("", () => { di = getDiForUnitTesting(); render = () => testingLibraryRender(( - + {DefaultProps(ClusterFrame)} diff --git a/packages/core/src/renderer/frames/routing-react-application-hoc.injectable.tsx b/packages/core/src/renderer/frames/routing-react-application-hoc.injectable.tsx index 5308c4d79e..5af32c330c 100644 --- a/packages/core/src/renderer/frames/routing-react-application-hoc.injectable.tsx +++ b/packages/core/src/renderer/frames/routing-react-application-hoc.injectable.tsx @@ -4,7 +4,7 @@ */ import { getInjectable } from "@ogre-tools/injectable"; import { Router } from "react-router"; -import { observableHistoryInjectable } from "@k8slens/routing"; +import { historyInjectable } from "@k8slens/routing"; import React from "react"; import { @@ -15,7 +15,7 @@ const routingReactApplicationHocInjectable = getInjectable({ id: "routing-react-application-hoc", instantiate: (di) => { - const history = di.inject(observableHistoryInjectable); + const history = di.inject(historyInjectable); return ({ children }) => (