Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(props) {
super(props);
this._handleEdit = ::this._handleEdit;
this._onModalClose = ::this._onModalClose;
this._onSave = ::this._onSave;
this.state = {
isEditing: false
};
this.actions = [
{"key": "edit", "icon": MegadraftIcons.EditIcon, "action": this._handleEdit},
{"key": "delete", "icon": MegadraftIcons.DeleteIcon, "action": this.props.container.remove}
];
}
constructor(props) {
super(props);
this._handleCaptionChange = ::this._handleCaptionChange;
this._handleEdit = ::this._handleEdit;
this.actions = [
{ key: "edit", icon: MegadraftIcons.EditIcon, action: this._handleEdit },
{
key: "delete",
icon: MegadraftIcons.DeleteIcon,
action: this.props.container.remove,
},
];
}