From 3fd1a366bf4eece8cf3de88fd190d08f10a70826 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 10 Aug 2017 23:13:40 +0100 Subject: [PATCH] add back button to all pages and widen textarea --- .../views/dialogs/DevtoolsDialog.js | 63 ++++++++++--------- 1 file changed, 32 insertions(+), 31 deletions(-) diff --git a/src/components/views/dialogs/DevtoolsDialog.js b/src/components/views/dialogs/DevtoolsDialog.js index 32cf0c0cd2..b384cfdf06 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 {
-