mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chore: loggerInjectionToken
Signed-off-by: Gabriel <gaccettola@mirantis.com>
This commit is contained in:
1 parent
66f28046b9
commit
908d6b381d
244 files changed
+533
-487
No files matched your search
@@ -3,7 +3,7 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { loggerInjectable } from "@k8slens/logger";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import { object } from "@k8slens/utilities";
|
||||
import type { LensTheme } from "./lens-theme";
|
||||
import resetThemeInjectable from "../../features/user-preferences/common/reset-theme.injectable";
|
||||
@@ -13,7 +13,7 @@ export type ApplyLensTheme = (theme: LensTheme) => void;
|
||||
const applyLensThemeInjectable = getInjectable({
|
||||
id: "apply-lens-theme",
|
||||
instantiate: (di): ApplyLensTheme => {
|
||||
const logger = di.inject(loggerInjectable);
|
||||
const logger = di.inject(loggerInjectionToken);
|
||||
const resetTheme = di.inject(resetThemeInjectable);
|
||||
|
||||
return (theme) => {
|
||||
|
||||
Reference in new issue
Block a user