From 30e6fdc122ad4a4f37f24e6179e951bb2196a61b Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 24 Oct 2018 14:36:08 +0200 Subject: [PATCH] fix lint --- src/components/structures/ContextualMenu.js | 4 +++- src/components/structures/RightPanel.js | 11 +++-------- src/components/structures/TopLeftMenuButton.js | 2 +- src/components/views/messages/DateSeparator.js | 2 +- 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/src/components/structures/ContextualMenu.js b/src/components/structures/ContextualMenu.js index 2dfc1eeb34..d551a6fe27 100644 --- a/src/components/structures/ContextualMenu.js +++ b/src/components/structures/ContextualMenu.js @@ -175,7 +175,9 @@ export default class ContextualMenu extends React.Component { `; } - const chevron = hasChevron ?
: undefined; + const chevron = hasChevron ? +
: + undefined; const className = 'mx_ContextualMenu_wrapper'; const menuClasses = classNames({ diff --git a/src/components/structures/RightPanel.js b/src/components/structures/RightPanel.js index ebc559b5fc..226b4a4ba4 100644 --- a/src/components/structures/RightPanel.js +++ b/src/components/structures/RightPanel.js @@ -29,8 +29,6 @@ import AccessibleButton from '../../components/views/elements/AccessibleButton'; import { showGroupInviteDialog, showGroupAddRoomDialog } from '../../GroupAddressPicker'; import GroupStore from '../../stores/GroupStore'; -import { formatCount } from '../../utils/FormattingUtils'; - class HeaderButton extends React.Component { constructor() { super(); @@ -52,11 +50,7 @@ class HeaderButton extends React.Component { const classes = classNames({ mx_RightPanel_headerButton: true, mx_RightPanel_headerButton_highlight: this.props.isHighlighted, - }) - // will probably use this later on for notifications, etc ... - /*
- { this.props.badge ? this.props.badge :   } -
*/ + }); return
{ this.getLabel() }
; + return


{ this.getLabel() }

; } }