Merge pull request #547 from matrix-org/luke/fix-memberavatar-proptypes

Fix MemberAvatar PropTypes & MemberEventListSummary key
pull/21833/head
Richard van der Hoff 2016-11-11 14:00:02 +00:00 committed by GitHub
commit b7fce70ce5
2 changed files with 3 additions and 3 deletions

View File

@ -321,7 +321,7 @@ module.exports = React.createClass({
} }
ret.push( ret.push(
<MemberEventListSummary events={summarisedEvents}> <MemberEventListSummary key={mxEv.getId()} events={summarisedEvents}>
{eventTiles} {eventTiles}
</MemberEventListSummary> </MemberEventListSummary>
); );

View File

@ -30,9 +30,9 @@ module.exports = React.createClass({
height: React.PropTypes.number, height: React.PropTypes.number,
resizeMethod: React.PropTypes.string, resizeMethod: React.PropTypes.string,
// The onClick to give the avatar // 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' // Whether the onClick of the avatar should be overriden to dispatch 'view_user'
viewUserOnClick: React.PropTypes.boolean, viewUserOnClick: React.PropTypes.bool,
}, },
getDefaultProps: function() { getDefaultProps: function() {