mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove usages of legacy global customResourceDefinitionStore
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
0125f31db3
commit
eb279f370d
@ -11,7 +11,6 @@ import { observer } from "mobx-react";
|
||||
import { Link } from "react-router-dom";
|
||||
import { iter, stopPropagation } from "../../utils";
|
||||
import { KubeObjectListLayout } from "../kube-object-list-layout";
|
||||
import { customResourceDefinitionStore } from "./legacy-store";
|
||||
import { Select } from "../select";
|
||||
import { Icon } from "../icon";
|
||||
import { KubeObjectAge } from "../kube-object/age";
|
||||
@ -87,7 +86,7 @@ class NonInjectedCustomResourceDefinitions extends React.Component<Dependencies>
|
||||
isConfigurable
|
||||
tableId="crd"
|
||||
className="CrdList"
|
||||
store={customResourceDefinitionStore}
|
||||
store={this.props.customResourceDefinitionStore}
|
||||
// Don't subscribe the `customResourceDefinitionStore` because <Sidebar> already has and is always mounted
|
||||
subscribeStores={false}
|
||||
items={this.items}
|
||||
|
||||
@ -1,12 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
|
||||
import { asLegacyGlobalForExtensionApi } from "../../../extensions/as-legacy-globals-for-extension-api/as-legacy-global-object-for-extension-api";
|
||||
import customResourceDefinitionStoreInjectable from "./definition.store.injectable";
|
||||
|
||||
/**
|
||||
* @deprecated use `di.inject(customResourceDefinitionStoreInjectable)` instead
|
||||
*/
|
||||
export const customResourceDefinitionStore = asLegacyGlobalForExtensionApi(customResourceDefinitionStoreInjectable);
|
||||
Loading…
Reference in New Issue
Block a user