diff --git a/src/common/front-end-routing/routes/preferences/app/navigate-to-app-preferences.injectable.ts b/src/common/front-end-routing/routes/preferences/app/navigate-to-app-preferences.injectable.ts deleted file mode 100644 index 4f83d47dec..0000000000 --- a/src/common/front-end-routing/routes/preferences/app/navigate-to-app-preferences.injectable.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Copyright (c) OpenLens Authors. All rights reserved. - * Licensed under MIT License. See LICENSE in root directory for more information. - */ -import { getInjectable } from "@ogre-tools/injectable"; -import appPreferencesRouteInjectable from "./app-preferences-route.injectable"; -import { navigateToRouteInjectionToken } from "../../../navigate-to-route-injection-token"; - -const navigateToAppPreferencesInjectable = getInjectable({ - id: "navigate-to-app-preferences", - - instantiate: (di) => { - const navigateToRoute = di.inject(navigateToRouteInjectionToken); - const route = di.inject(appPreferencesRouteInjectable); - - return () => navigateToRoute(route); - }, -}); - -export default navigateToAppPreferencesInjectable; diff --git a/src/common/front-end-routing/routes/preferences/navigate-to-preferences.injectable.ts b/src/common/front-end-routing/routes/preferences/navigate-to-preferences.injectable.ts index 545751d7c3..249fe52458 100644 --- a/src/common/front-end-routing/routes/preferences/navigate-to-preferences.injectable.ts +++ b/src/common/front-end-routing/routes/preferences/navigate-to-preferences.injectable.ts @@ -3,12 +3,12 @@ * Licensed under MIT License. See LICENSE in root directory for more information. */ import { getInjectable } from "@ogre-tools/injectable"; -import navigateToAppPreferencesInjectable from "./app/navigate-to-app-preferences.injectable"; +import navigateToApplicationPreferencesInjectable from "../../../../features/preferences/common/navigate-to-application-preferences.injectable"; const navigateToPreferencesInjectable = getInjectable({ id: "navigate-to-preferences", - instantiate: (di) => di.inject(navigateToAppPreferencesInjectable), + instantiate: (di) => di.inject(navigateToApplicationPreferencesInjectable), }); export default navigateToPreferencesInjectable; diff --git a/src/features/preferences/__snapshots__/closing-preferences.test.tsx.snap b/src/features/preferences/__snapshots__/closing-preferences.test.tsx.snap index 14108e700e..65c18e1f5a 100644 --- a/src/features/preferences/__snapshots__/closing-preferences.test.tsx.snap +++ b/src/features/preferences/__snapshots__/closing-preferences.test.tsx.snap @@ -743,6 +743,7 @@ exports[`preferences - closing-preferences given accessing preferences directly />