mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Removed package "autobind-decorator" and @boundMethod in favour of "auto-bind" util for constructors-only. (#5218)
This commit is contained in:
1 parent
5f145e69e5
commit
06e7dfce5e
45 files changed
+150
-180
No files matched your search
@@ -13,7 +13,7 @@ import { SubHeader } from "../layout/sub-header";
|
||||
import { Table, TableCell, TableHead, TableRow } from "../table";
|
||||
import { nodesStore } from "../+nodes/nodes.store";
|
||||
import { eventStore } from "../+events/event.store";
|
||||
import { boundMethod, cssNames, prevDefault } from "../../utils";
|
||||
import { cssNames, prevDefault } from "../../utils";
|
||||
import type { ItemObject } from "../../../common/item.store";
|
||||
import { Spinner } from "../spinner";
|
||||
import { ThemeStore } from "../../theme.store";
|
||||
@@ -72,8 +72,7 @@ export class ClusterIssues extends React.Component<ClusterIssuesProps> {
|
||||
];
|
||||
}
|
||||
|
||||
@boundMethod
|
||||
getTableRow(uid: string) {
|
||||
getTableRow = (uid: string) => {
|
||||
const { warnings } = this;
|
||||
const warning = warnings.find(warn => warn.getId() == uid);
|
||||
const { getId, getName, message, kind, selfLink, renderAge } = warning;
|
||||
@@ -99,7 +98,7 @@ export class ClusterIssues extends React.Component<ClusterIssuesProps> {
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
renderContent() {
|
||||
const { warnings } = this;
|
||||
|
||||
Reference in new issue
Block a user