Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
Travis Ralston 2017-10-14 20:23:50 -06:00
parent 0b20681f6a
commit 788e16a716

View file

@ -111,10 +111,10 @@ module.exports = React.createClass({
const avatarNode = ( const avatarNode = (
<MemberAvatar member={this.props.member} width={this.props.width} height={this.props.height} <MemberAvatar member={this.props.member} width={this.props.width} height={this.props.height}
resizeMethod={this.props.resizeMethod}/> resizeMethod={this.props.resizeMethod} />
); );
let statusNode = ( let statusNode = (
<span className={"mx_MemberPresenceAvatar_status mx_MemberPresenceAvatar_status_" + this.state.status}/> <span className={"mx_MemberPresenceAvatar_status mx_MemberPresenceAvatar_status_" + this.state.status} />
); );
// LABS: Disable presence management functions for now // LABS: Disable presence management functions for now
@ -125,15 +125,15 @@ module.exports = React.createClass({
let avatar = ( let avatar = (
<div className="mx_MemberPresenceAvatar"> <div className="mx_MemberPresenceAvatar">
{avatarNode} { avatarNode }
{statusNode} { statusNode }
</div> </div>
); );
if (onClickFn) { if (onClickFn) {
avatar = ( avatar = (
<AccessibleButton onClick={onClickFn} className="mx_MemberPresenceAvatar" element="div"> <AccessibleButton onClick={onClickFn} className="mx_MemberPresenceAvatar" element="div">
{avatarNode} { avatarNode }
{statusNode} { statusNode }
</AccessibleButton> </AccessibleButton>
); );
} }