From 7c0f463c91c5dec22f62480f4c25c25ca8b3db13 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 29 Jan 2019 15:40:19 +0100 Subject: [PATCH] fix lint --- src/components/structures/MatrixChat.js | 5 +++-- src/components/views/dialogs/BaseDialog.js | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index 40ee7e52e1..42ce44f42a 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -614,14 +614,15 @@ export default React.createClass({ Modal.createTrackedDialog('Create Community', '', CreateGroupDialog); } break; - case 'view_room_directory': + case 'view_room_directory': { const RoomDirectory = sdk.getComponent("structures.RoomDirectory"); Modal.createTrackedDialog('Room directory', '', RoomDirectory, { config: this.props.config, }, 'mx_RoomDirectory_dialogWrapper'); // this._setPage(PageTypes.RoomDirectory); // this.notifyNewScreen('directory'); - break; + } + break; case 'view_my_groups': this._setPage(PageTypes.MyGroups); this.notifyNewScreen('groups'); diff --git a/src/components/views/dialogs/BaseDialog.js b/src/components/views/dialogs/BaseDialog.js index 0dcef973ad..9fcaa03031 100644 --- a/src/components/views/dialogs/BaseDialog.js +++ b/src/components/views/dialogs/BaseDialog.js @@ -106,8 +106,6 @@ export default React.createClass({ }, render: function() { - const TintableSvg = sdk.getComponent("elements.TintableSvg"); - let cancelButton; if (this.props.hasCancel) { cancelButton =