mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Table component injection tokens (#7754)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
1 parent
4b63bc238e
commit
1ffdb6c89f
20 files changed
+167
-18
No files matched your search
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { tableComponentInjectionToken } from "@k8slens/table-tokens";
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { Table } from "../../renderer/components/table/table";
|
||||
|
||||
const tableComponentInjectable = getInjectable({
|
||||
id: "table-component",
|
||||
instantiate: () => ({ Component: Table }),
|
||||
injectionToken: tableComponentInjectionToken,
|
||||
});
|
||||
|
||||
export default tableComponentInjectable;
|
||||
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { getFeature } from "@k8slens/feature-core";
|
||||
import tableComponentInjectable from "./table-component.injectable";
|
||||
|
||||
export const tableFeature = getFeature({
|
||||
id: "core-table-feature",
|
||||
|
||||
register: (di) => {
|
||||
di.register(tableComponentInjectable);
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user