diff --git a/src/components/views/dialogs/DevtoolsDialog.js b/src/components/views/dialogs/DevtoolsDialog.js index 32cf0c0c..b384cfdf 100644 --- a/src/components/views/dialogs/DevtoolsDialog.js +++ b/src/components/views/dialogs/DevtoolsDialog.js @@ -22,13 +22,12 @@ import MatrixClientPeg from 'matrix-react-sdk/lib/MatrixClientPeg'; class SendCustomEvent extends React.Component { static propTypes = { roomId: React.PropTypes.string.isRequired, - onFinished: React.PropTypes.func.isRequired, + onBack: React.PropTypes.func.isRequired, }; constructor(props, context) { super(props, context); this._send = this._send.bind(this); - this.onCancel = this.onCancel.bind(this); } async _send() { @@ -46,10 +45,6 @@ class SendCustomEvent extends React.Component { } } - onCancel() { - this.props.onFinished(false); - } - render() { return
@@ -71,12 +66,12 @@ class SendCustomEvent extends React.Component {
-