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 className = 'mx_ContextualMenu_wrapper';
const menuClasses = classNames({ const menuClasses = classNames({

View file

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

View file

@ -62,7 +62,7 @@ export default class TopLeftMenuButton extends React.Component {
try { try {
const profileInfo = await this._getProfileInfo(); const profileInfo = await this._getProfileInfo();
this.setState({profileInfo}); this.setState({profileInfo});
} catch(ex) { } catch (ex) {
console.log("could not fetch profile"); console.log("could not fetch profile");
console.error(ex); console.error(ex);
} }

View file

@ -56,6 +56,6 @@ export default class DateSeparator extends React.Component {
} }
render() { 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>;
} }
} }