fix lint
parent
25b55b2801
commit
30e6fdc122
|
@ -175,7 +175,9 @@ export default class ContextualMenu extends React.Component {
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
const chevron = hasChevron ? <div style={chevronOffset} className={"mx_ContextualMenu_chevron_" + chevronFace} /> : undefined;
|
const chevron = hasChevron ?
|
||||||
|
<div style={chevronOffset} className={"mx_ContextualMenu_chevron_" + chevronFace} /> :
|
||||||
|
undefined;
|
||||||
const className = 'mx_ContextualMenu_wrapper';
|
const className = 'mx_ContextualMenu_wrapper';
|
||||||
|
|
||||||
const menuClasses = classNames({
|
const menuClasses = classNames({
|
||||||
|
|
|
@ -29,8 +29,6 @@ import AccessibleButton from '../../components/views/elements/AccessibleButton';
|
||||||
import { showGroupInviteDialog, showGroupAddRoomDialog } from '../../GroupAddressPicker';
|
import { showGroupInviteDialog, showGroupAddRoomDialog } from '../../GroupAddressPicker';
|
||||||
import GroupStore from '../../stores/GroupStore';
|
import GroupStore from '../../stores/GroupStore';
|
||||||
|
|
||||||
import { formatCount } from '../../utils/FormattingUtils';
|
|
||||||
|
|
||||||
class HeaderButton extends React.Component {
|
class HeaderButton extends React.Component {
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
|
@ -52,11 +50,7 @@ class HeaderButton extends React.Component {
|
||||||
const classes = classNames({
|
const classes = classNames({
|
||||||
mx_RightPanel_headerButton: true,
|
mx_RightPanel_headerButton: true,
|
||||||
mx_RightPanel_headerButton_highlight: this.props.isHighlighted,
|
mx_RightPanel_headerButton_highlight: this.props.isHighlighted,
|
||||||
})
|
});
|
||||||
// will probably use this later on for notifications, etc ...
|
|
||||||
/* <div className="mx_RightPanel_headerButton_badge">
|
|
||||||
{ this.props.badge ? this.props.badge : <span> </span> }
|
|
||||||
</div> */
|
|
||||||
|
|
||||||
return <AccessibleButton
|
return <AccessibleButton
|
||||||
aria-label={this.props.title}
|
aria-label={this.props.title}
|
||||||
|
@ -263,10 +257,11 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
const TintableSvg = sdk.getComponent("elements.TintableSvg");
|
const TintableSvg = sdk.getComponent("elements.TintableSvg");
|
||||||
|
|
||||||
|
// eslint-disable-next-line no-unused-vars
|
||||||
let inviteGroup;
|
let inviteGroup;
|
||||||
|
|
||||||
let membersBadge;
|
let membersBadge;
|
||||||
let membersTitle = _t('Members');
|
const membersTitle = _t('Members');
|
||||||
|
|
||||||
const isPhaseGroup = [
|
const isPhaseGroup = [
|
||||||
this.Phase.GroupMemberInfo,
|
this.Phase.GroupMemberInfo,
|
||||||
|
|
Loading…
Reference in New Issue