Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function TableBlock(props) {
_classCallCheck(this, TableBlock);
var _this = _possibleConstructorReturn(this, (TableBlock.__proto__ || Object.getPrototypeOf(TableBlock)).call(this, props));
_this._handleEdit = _this._handleEdit.bind(_this);
_this._onModalClose = _this._onModalClose.bind(_this);
_this._onSave = _this._onSave.bind(_this);
_this.state = {
isEditing: false
};
_this.actions = [{ "key": "edit", "icon": _megadraft.MegadraftIcons.EditIcon, "action": _this._handleEdit }, { "key": "delete", "icon": _megadraft.MegadraftIcons.DeleteIcon, "action": _this.props.container.remove }];
return _this;
}