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
@@ -8,7 +8,7 @@ import "./menu-actions.scss";
|
||||
import React, { isValidElement } from "react";
|
||||
import { observable, makeObservable } from "mobx";
|
||||
import { observer } from "mobx-react";
|
||||
import { boundMethod, cssNames } from "../../utils";
|
||||
import { autoBind, cssNames } from "../../utils";
|
||||
import { ConfirmDialog } from "../confirm-dialog";
|
||||
import type { IconProps } from "../icon";
|
||||
import { Icon } from "../icon";
|
||||
@@ -48,9 +48,9 @@ export class MenuActions extends React.Component<MenuActionsProps> {
|
||||
constructor(props: MenuActionsProps) {
|
||||
super(props);
|
||||
makeObservable(this);
|
||||
autoBind(this);
|
||||
}
|
||||
|
||||
@boundMethod
|
||||
remove() {
|
||||
const { removeAction } = this.props;
|
||||
let { removeConfirmationMessage } = this.props;
|
||||
|
||||
Reference in new issue
Block a user