Quiet warnings about keys in Activity component

This commit is contained in:
Ray Schamp 2015-11-06 11:36:35 -05:00
parent 1d9be73aed
commit 5dc6cd220d

View file

@ -34,7 +34,7 @@ var Activity = React.createClass({
title={formatMessage(defaultMessages.whatsHappening)}> title={formatMessage(defaultMessages.whatsHappening)}>
{this.props.items && this.props.items.length > 0 ? [ {this.props.items && this.props.items.length > 0 ? [
<ul> <ul key="activity-ul">
{this.props.items.map(function (item) { {this.props.items.map(function (item) {
if (item.message.replace(/\s/g, '')) { if (item.message.replace(/\s/g, '')) {
var actorProfileUrl = '/users/' + item.actor.username + '/'; var actorProfileUrl = '/users/' + item.actor.username + '/';
@ -60,7 +60,7 @@ var Activity = React.createClass({
})} })}
</ul> </ul>
] : [ ] : [
<div className="empty"> <div className="empty" key="activity-empty">
<h4> <h4>
<FormattedMessage <FormattedMessage
id="activity.seeUpdates" id="activity.seeUpdates"