mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove dead code
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com> Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
parent
ffd4b13dcd
commit
69764045aa
@ -1,21 +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 type { Route } from "../../../../common/front-end-routing/front-end-route-injection-token";
|
|
||||||
import { navigateToRouteInjectionToken } from "../../../../common/front-end-routing/navigate-to-route-injection-token";
|
|
||||||
|
|
||||||
const navigateToPreferenceTabInjectable = getInjectable({
|
|
||||||
id: "navigate-to-preference-tab",
|
|
||||||
|
|
||||||
instantiate: (di) => {
|
|
||||||
const navigateToRoute = di.inject(navigateToRouteInjectionToken);
|
|
||||||
|
|
||||||
return (route: Route) => () => {
|
|
||||||
navigateToRoute(route, { withoutAffectingBackButton: true });
|
|
||||||
};
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
export default navigateToPreferenceTabInjectable;
|
|
||||||
Loading…
Reference in New Issue
Block a user