mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
Heed warnings about giving children keys
This commit is contained in:
parent
89d64fa743
commit
438919ac72
2 changed files with 12 additions and 7 deletions
|
@ -63,9 +63,13 @@ module.exports = React.createClass({
|
|||
</form>
|
||||
</li>
|
||||
{this.state.loggedIn ? [
|
||||
<li className="link right messages"><a href="/messages/" title="Messages">Messages</a></li>,
|
||||
<li className="link right mystuff"><a href="/mystuff/" title="My Stuff">My Stuff</a></li>,
|
||||
<li className="link right account-nav">
|
||||
<li className="link right messages" key="messages">
|
||||
<a href="/messages/" title="Messages">Messages</a>
|
||||
</li>,
|
||||
<li className="link right mystuff" key="mystuff">
|
||||
<a href="/mystuff/" title="My Stuff">My Stuff</a>
|
||||
</li>,
|
||||
<li className="link right account-nav" key="account-nav">
|
||||
<a className="userInfo" href="#" onClick={this.handleClickAccountNav}>
|
||||
<img src={this.state.loggedInUser.thumbnail} />
|
||||
{this.state.loggedInUser.username}
|
||||
|
@ -83,8 +87,8 @@ module.exports = React.createClass({
|
|||
</Dropdown>
|
||||
</li>
|
||||
] : [
|
||||
<li className="link right join"><a href="/join">Join Scratch</a></li>,
|
||||
<li className="link right">
|
||||
<li className="link right join" key="join"><a href="/join">Join Scratch</a></li>,
|
||||
<li className="link right" key="login">
|
||||
<a href="#" onClick={this.handleLoginClick}>Sign In</a>
|
||||
<Dropdown
|
||||
className="login-dropdown with-arrow"
|
||||
|
|
|
@ -40,8 +40,9 @@ var View = React.createClass({
|
|||
{this.state.featured.map(function (set) {
|
||||
return (
|
||||
<Box
|
||||
className="featured"
|
||||
title={set.title}>
|
||||
key={set.title}
|
||||
className="featured"
|
||||
title={set.title}>
|
||||
<Carousel items={set.items} />
|
||||
</Box>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue