mirror of https://github.com/vector-im/riot-web
Merge pull request #547 from matrix-org/luke/fix-memberavatar-proptypes
Fix MemberAvatar PropTypes & MemberEventListSummary keypull/21833/head
commit
b7fce70ce5
|
@ -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 New Issue