Commit 7fe82c11 authored by Ray Schamp's avatar Ray Schamp

Get rid of most splash warnings in development

parent 0414f069
...@@ -55,7 +55,7 @@ var Carousel = React.createClass({ ...@@ -55,7 +55,7 @@ var Carousel = React.createClass({
} }
return ( return (
<Thumbnail key={item.id} <Thumbnail key={[this.key, item.id].join('.')}
showLoves={this.props.showLoves} showLoves={this.props.showLoves}
showRemixes={this.props.showRemixes} showRemixes={this.props.showRemixes}
type={item.type} type={item.type}
......
...@@ -266,7 +266,7 @@ var Navigation = React.createClass({ ...@@ -266,7 +266,7 @@ var Navigation = React.createClass({
</a> </a>
</li> </li>
{this.props.permissions.educator ? [ {this.props.permissions.educator ? [
<li> <li key="my-classes-li">
<a href="/educators/classes/"> <a href="/educators/classes/">
<FormattedMessage id="general.myClasses" /> <FormattedMessage id="general.myClasses" />
</a> </a>
......
...@@ -35,11 +35,11 @@ var TeacherBanner = React.createClass({ ...@@ -35,11 +35,11 @@ var TeacherBanner = React.createClass({
<div className="welcome"> <div className="welcome">
{this.props.session.status === sessionActions.Status.FETCHED ? ( {this.props.session.status === sessionActions.Status.FETCHED ? (
this.props.session.session.user ? [ this.props.session.session.user ? [
<h3> <h3 key="greeting">
{this.props.messages['teacherbanner.greeting']},{' '} {this.props.messages['teacherbanner.greeting']},{' '}
{this.props.session.session.user.username} {this.props.session.session.user.username}
</h3>, </h3>,
<p> <p key="subgreeting">
{this.props.messages['teacherbanner.subgreeting']} {this.props.messages['teacherbanner.subgreeting']}
</p> </p>
] : [] ] : []
...@@ -48,17 +48,17 @@ var TeacherBanner = React.createClass({ ...@@ -48,17 +48,17 @@ var TeacherBanner = React.createClass({
<FlexRow className="quick-links"> <FlexRow className="quick-links">
{this.props.session.status === sessionActions.Status.FETCHED ? ( {this.props.session.status === sessionActions.Status.FETCHED ? (
this.props.session.session.user ? [ this.props.session.session.user ? [
<a href="/educators/classes"> <a href="/educators/classes" key="classes-button">
<Button> <Button>
{this.props.messages['teacherbanner.classesButton']} {this.props.messages['teacherbanner.classesButton']}
</Button> </Button>
</a>, </a>,
<a href="/info/educators"> <a href="/info/educators" key="resources-button">
<Button> <Button>
{this.props.messages['teacherbanner.resourcesButton']} {this.props.messages['teacherbanner.resourcesButton']}
</Button> </Button>
</a>, </a>,
<a href="/educators/faq"> <a href="/educators/faq" key="faq-button">
<Button> <Button>
{this.props.messages['teacherbanner.faqButton']} {this.props.messages['teacherbanner.faqButton']}
</Button> </Button>
......
...@@ -377,7 +377,7 @@ var Splash = injectIntl(React.createClass({ ...@@ -377,7 +377,7 @@ var Splash = injectIntl(React.createClass({
</Modal> </Modal>
] : []} ] : []}
{this.props.permissions.educator ? [ {this.props.permissions.educator ? [
<TeacherBanner messages={messages} /> <TeacherBanner key="teacherbanner" messages={messages} />
] : []} ] : []}
<div key="inner" className="inner"> <div key="inner" className="inner">
{this.props.session.status === sessionActions.Status.FETCHED ? ( {this.props.session.status === sessionActions.Status.FETCHED ? (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment