summaryrefslogtreecommitdiffstats
path: root/web/react
diff options
context:
space:
mode:
authornickago <ngonella@calpoly.edu>2015-08-10 10:52:51 -0700
committernickago <ngonella@calpoly.edu>2015-08-10 10:52:51 -0700
commit8297f99209d7947e8cb806e5df918b45d0e06476 (patch)
treedfd7053108327a8b4cfd91a256ac0332004eb363 /web/react
parentae744dcb53dde8e068c9e5e4fbfc847ffd083eec (diff)
downloadchat-8297f99209d7947e8cb806e5df918b45d0e06476.tar.gz
chat-8297f99209d7947e8cb806e5df918b45d0e06476.tar.bz2
chat-8297f99209d7947e8cb806e5df918b45d0e06476.zip
Removed unnecessary keys
Diffstat (limited to 'web/react')
-rw-r--r--web/react/components/post_list.jsx14
1 files changed, 7 insertions, 7 deletions
diff --git a/web/react/components/post_list.jsx b/web/react/components/post_list.jsx
index 0ee7e9969..83f806b79 100644
--- a/web/react/components/post_list.jsx
+++ b/web/react/components/post_list.jsx
@@ -439,9 +439,9 @@ module.exports = React.createClass({
currentPostDay = utils.getDateForUnixTicks(post.create_at);
if (currentPostDay.toDateString() != previousPostDay.toDateString()) {
postCtls.push(
- <div key="date_div" className="date-separator">
- <hr key="date_line" className="separator__hr" />
- <div key="date" className="separator__text">{currentPostDay.toDateString()}</div>
+ <div key={currentPostDay.toDateString()} className="date-separator">
+ <hr className="separator__hr" />
+ <div className="separator__text">{currentPostDay.toDateString()}</div>
</div>
);
}
@@ -449,9 +449,9 @@ module.exports = React.createClass({
if (post.create_at > last_viewed && !rendered_last_viewed) {
rendered_last_viewed = true;
postCtls.push(
- <div key="unviewed_div" className="new-separator">
- <hr key="unviewed_line" id="new_message" className="separator__hr" />
- <div key="unviewedMessage" className="separator__text">New Messages</div>
+ <div key="unviewed" className="new-separator">
+ <hr id="new_message" className="separator__hr" />
+ <div className="separator__text">New Messages</div>
</div>
);
}
@@ -459,7 +459,7 @@ module.exports = React.createClass({
previousPostDay = currentPostDay;
}
} else {
- postCtls.push(<LoadingScreen key="loading" position="absolute" />);
+ postCtls.push(<LoadingScreen position="absolute" />);
}
return (