mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
feat: Introduce feature adapter for injectable-react and injectable-mobx
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
7 files changed
+65
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import { getFeature } from "@k8slens/feature-core";
|
||||
import type { DiContainer } from "@ogre-tools/injectable";
|
||||
import { registerMobX } from "@ogre-tools/injectable-extension-for-mobx";
|
||||
|
||||
export const injectableMobXFeature = getFeature({
|
||||
id: "injectable-mobx",
|
||||
|
||||
register: (di) => {
|
||||
registerMobX(di as DiContainer);
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,11 @@
|
||||
import { getFeature } from "@k8slens/feature-core";
|
||||
import type { DiContainer } from "@ogre-tools/injectable";
|
||||
import { registerInjectableReact } from "@ogre-tools/injectable-react";
|
||||
|
||||
export const injectableReactFeature = getFeature({
|
||||
id: "injectable-react",
|
||||
|
||||
register: (di) => {
|
||||
registerInjectableReact(di as DiContainer);
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user