Removed package "autobind-decorator" and @boundMethod in favour of "auto-bind" util for constructors-only. (#5218)

This commit is contained in:
Roman authored and GitHub committed 2022-04-07 17:21:54 +03:00
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;