Removed unnecessary keys
Этот коммит содержится в:
@@ -439,9 +439,9 @@ module.exports = React.createClass({
|
|||||||
currentPostDay = utils.getDateForUnixTicks(post.create_at);
|
currentPostDay = utils.getDateForUnixTicks(post.create_at);
|
||||||
if (currentPostDay.toDateString() != previousPostDay.toDateString()) {
|
if (currentPostDay.toDateString() != previousPostDay.toDateString()) {
|
||||||
postCtls.push(
|
postCtls.push(
|
||||||
<div key="date_div" className="date-separator">
|
<div key={currentPostDay.toDateString()} className="date-separator">
|
||||||
<hr key="date_line" className="separator__hr" />
|
<hr className="separator__hr" />
|
||||||
<div key="date" className="separator__text">{currentPostDay.toDateString()}</div>
|
<div className="separator__text">{currentPostDay.toDateString()}</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -449,9 +449,9 @@ module.exports = React.createClass({
|
|||||||
if (post.create_at > last_viewed && !rendered_last_viewed) {
|
if (post.create_at > last_viewed && !rendered_last_viewed) {
|
||||||
rendered_last_viewed = true;
|
rendered_last_viewed = true;
|
||||||
postCtls.push(
|
postCtls.push(
|
||||||
<div key="unviewed_div" className="new-separator">
|
<div key="unviewed" className="new-separator">
|
||||||
<hr key="unviewed_line" id="new_message" className="separator__hr" />
|
<hr id="new_message" className="separator__hr" />
|
||||||
<div key="unviewedMessage" className="separator__text">New Messages</div>
|
<div className="separator__text">New Messages</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -459,7 +459,7 @@ module.exports = React.createClass({
|
|||||||
previousPostDay = currentPostDay;
|
previousPostDay = currentPostDay;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
postCtls.push(<LoadingScreen key="loading" position="absolute" />);
|
postCtls.push(<LoadingScreen position="absolute" />);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user