1
0
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:
Janne Savolainen 2022-10-14 09:10:20 +03:00
parent ffd4b13dcd
commit 69764045aa
No known key found for this signature in database
GPG Key ID: 8C6CFB2FFFE8F68A

View File

@ -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;