mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 20:38:55 +03:00
fix lint
This commit is contained in:
parent
25b55b2801
commit
30e6fdc122
4 changed files with 8 additions and 11 deletions
|
@ -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 menuClasses = classNames({
|
||||
|
|
|
@ -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 ...
|
||||
/* <div className="mx_RightPanel_headerButton_badge">
|
||||
{ this.props.badge ? this.props.badge : <span> </span> }
|
||||
</div> */
|
||||
});
|
||||
|
||||
return <AccessibleButton
|
||||
aria-label={this.props.title}
|
||||
|
@ -263,10 +257,11 @@ module.exports = React.createClass({
|
|||
|
||||
const TintableSvg = sdk.getComponent("elements.TintableSvg");
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
let inviteGroup;
|
||||
|
||||
let membersBadge;
|
||||
let membersTitle = _t('Members');
|
||||
const membersTitle = _t('Members');
|
||||
|
||||
const isPhaseGroup = [
|
||||
this.Phase.GroupMemberInfo,
|
||||
|
|
|
@ -62,7 +62,7 @@ export default class TopLeftMenuButton extends React.Component {
|
|||
try {
|
||||
const profileInfo = await this._getProfileInfo();
|
||||
this.setState({profileInfo});
|
||||
} catch(ex) {
|
||||
} catch (ex) {
|
||||
console.log("could not fetch profile");
|
||||
console.error(ex);
|
||||
}
|
||||
|
|
|
@ -56,6 +56,6 @@ export default class DateSeparator extends React.Component {
|
|||
}
|
||||
|
||||
render() {
|
||||
return <h2 className="mx_DateSeparator"><hr/><date>{ this.getLabel() }</date><hr/></h2>;
|
||||
return <h2 className="mx_DateSeparator"><hr /><date>{ this.getLabel() }</date><hr /></h2>;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue