From 9b19222e3828a30090366cbe0d9a331562a5ff36 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Fri, 24 Jan 2020 11:46:34 +1100 Subject: [PATCH] fix lint --- ts/components/session/RegistrationTabs.tsx | 28 ++++++++++--------- .../session/SessionChannelSettings.tsx | 4 ++- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/ts/components/session/RegistrationTabs.tsx b/ts/components/session/RegistrationTabs.tsx index ff647d473..3f8964a71 100644 --- a/ts/components/session/RegistrationTabs.tsx +++ b/ts/components/session/RegistrationTabs.tsx @@ -437,7 +437,7 @@ export class RegistrationTabs extends React.Component<{}, State> { } private renderNamePasswordAndVerifyPasswordFields() { - const {password, passwordFieldsMatch} = this.state; + const { password, passwordFieldsMatch } = this.state; const passwordsDoNotMatch = !passwordFieldsMatch && this.state.password ? window.i18n('passwordsDoNotMatch') @@ -471,18 +471,20 @@ export class RegistrationTabs extends React.Component<{}, State> { }} /> - {!!password && { - this.onPasswordVerifyChanged(val); - }} - onEnterPressed={() => { - this.handlePressEnter(); - }} - />} + {!!password && ( + { + this.onPasswordVerifyChanged(val); + }} + onEnterPressed={() => { + this.handlePressEnter(); + }} + /> + )} ); } diff --git a/ts/components/session/SessionChannelSettings.tsx b/ts/components/session/SessionChannelSettings.tsx index 7b89edc65..f7462ceaa 100644 --- a/ts/components/session/SessionChannelSettings.tsx +++ b/ts/components/session/SessionChannelSettings.tsx @@ -187,7 +187,9 @@ export class SessionChannelSettings extends React.Component { const { memberCount, name, onLeaveGroup, isPublic } = this.props; const { documents, media, onItemClick } = this.state; const showMemberCount = !!(memberCount && memberCount > 0); - const leaveGroupString = isPublic ? window.i18n('leaveOpenGroup') : window.i18n('leaveClosedGroup'); + const leaveGroupString = isPublic + ? window.i18n('leaveOpenGroup') + : window.i18n('leaveClosedGroup'); return (