From ac64e9b70582aed6fefbd3b8bae436096441f5a4 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 21 Aug 2017 19:34:07 +0100 Subject: [PATCH] Lint --- src/GroupInvite.js | 2 -- src/components/structures/GroupView.js | 12 ++++++------ .../views/dialogs/ConfirmUserActionDialog.js | 2 +- src/components/views/groups/GroupInviteTile.js | 4 +--- src/components/views/groups/GroupMemberInfo.js | 16 ++++++---------- src/components/views/groups/GroupMemberList.js | 2 +- src/components/views/groups/GroupMemberTile.js | 4 +--- src/groups.js | 2 +- 8 files changed, 17 insertions(+), 27 deletions(-) diff --git a/src/GroupInvite.js b/src/GroupInvite.js index e977d2fba0..64b0b255e5 100644 --- a/src/GroupInvite.js +++ b/src/GroupInvite.js @@ -14,12 +14,10 @@ See the License for the specific language governing permissions and limitations under the License. */ -import MatrixClientPeg from './MatrixClientPeg'; import Modal from './Modal'; import sdk from './'; import MultiInviter from './utils/MultiInviter'; import { _t } from './languageHandler'; -import Promise from 'bluebird'; export function showGroupInviteDialog(groupId) { const UserPickerDialog = sdk.getComponent("dialogs.UserPickerDialog"); diff --git a/src/components/structures/GroupView.js b/src/components/structures/GroupView.js index e7e1e82b82..dac0071155 100644 --- a/src/components/structures/GroupView.js +++ b/src/components/structures/GroupView.js @@ -362,7 +362,7 @@ export default React.createClass({ description: _t("Unable to leave room"), }); }); - } + }, }); }, @@ -500,7 +500,7 @@ export default React.createClass({ let nameNode; let shortDescNode; let roomBody; - let rightButtons = []; + const rightButtons = []; const headerClasses = { mx_GroupView_header: true, }; @@ -548,13 +548,13 @@ export default React.createClass({ onClick={this._onSaveClick} key="_saveButton" > {_t('Save')} - + , ); rightButtons.push( {_t("Cancel")}/ - + , ); roomBody =