This commit is contained in:
Bruno Windels 2018-10-24 14:36:08 +02:00
parent 25b55b2801
commit 30e6fdc122
4 changed files with 8 additions and 11 deletions

View file

@ -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({

View file

@ -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>&nbsp;</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,

View file

@ -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);
}

View file

@ -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>;
}
}