Merge pull request #547 from matrix-org/luke/fix-memberavatar-proptypes
Fix MemberAvatar PropTypes & MemberEventListSummary key
This commit is contained in:
commit
b7fce70ce5
2 changed files with 3 additions and 3 deletions
|
@ -321,7 +321,7 @@ module.exports = React.createClass({
|
|||
}
|
||||
|
||||
ret.push(
|
||||
<MemberEventListSummary events={summarisedEvents}>
|
||||
<MemberEventListSummary key={mxEv.getId()} events={summarisedEvents}>
|
||||
{eventTiles}
|
||||
</MemberEventListSummary>
|
||||
);
|
||||
|
|
|
@ -30,9 +30,9 @@ module.exports = React.createClass({
|
|||
height: React.PropTypes.number,
|
||||
resizeMethod: React.PropTypes.string,
|
||||
// The onClick to give the avatar
|
||||
onClick: React.PropTypes.function,
|
||||
onClick: React.PropTypes.func,
|
||||
// Whether the onClick of the avatar should be overriden to dispatch 'view_user'
|
||||
viewUserOnClick: React.PropTypes.boolean,
|
||||
viewUserOnClick: React.PropTypes.bool,
|
||||
},
|
||||
|
||||
getDefaultProps: function() {
|
||||
|
|
Loading…
Reference in a new issue