fix stupid typing warnings

This commit is contained in:
Matthew Hodgson 2015-10-24 20:28:42 +01:00
parent e59bfe16dc
commit a74cef0d64
3 changed files with 4 additions and 4 deletions

View file

@ -95,7 +95,7 @@ module.exports = React.createClass({
var timestamp = <MessageTimestamp ts={this.props.mxEvent.getTs()} />
var editButton = (
<input
type="image" src="img/edit.png" alt="Edit"
type="image" src="img/edit.png" alt="Edit" width="14" height="14"
className="mx_EventTile_editButton" onClick={this.onEditClicked}
/>
);
@ -110,7 +110,7 @@ module.exports = React.createClass({
if (this.props.mxEvent.sender) {
avatar = (
<div className="mx_EventTile_avatar">
<MemberAvatar member={this.props.mxEvent.sender} width="24" height="24" />
<MemberAvatar member={this.props.mxEvent.sender} width={24} height={24} />
</div>
);
}

View file

@ -177,7 +177,7 @@ module.exports = React.createClass({
return (
<div className={mainClassName} title={ this.getPowerLabel() } onClick={ this.onClick } onMouseEnter={ this.mouseEnter } onMouseLeave={ this.mouseLeave }>
<div className="mx_MemberTile_avatar">
<MemberAvatar member={this.props.member} width="36" height="36" />
<MemberAvatar member={this.props.member} width={36} height={36} />
{ power }
</div>
{ nameEl }

View file

@ -49,7 +49,7 @@ module.exports = React.createClass({
<div className="mx_MessageComposer_wrapper">
<div className="mx_MessageComposer_row">
<div className="mx_MessageComposer_avatar">
<MemberAvatar member={me} width="24" height="24" />
<MemberAvatar member={me} width={24} height={24} />
</div>
<div className="mx_MessageComposer_input">
<textarea ref="textarea" onKeyDown={this.onKeyDown} placeholder="Type a message..." />