mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 15:47:53 -05:00
initial pass
This commit is contained in:
parent
d645e95bd7
commit
e402363576
3 changed files with 114 additions and 109 deletions
|
@ -225,7 +225,8 @@ var Navigation = React.createClass({
|
|||
<Input type="hidden" name="sort_by" value="datetime_shared" />
|
||||
</form>
|
||||
</li>
|
||||
{this.props.session.user ? [
|
||||
{this.props.session.loaded ? (
|
||||
this.props.session.user ? [
|
||||
<li className="link right messages" key="messages">
|
||||
<a
|
||||
href="/messages/"
|
||||
|
@ -317,6 +318,7 @@ var Navigation = React.createClass({
|
|||
error={this.state.loginError} />
|
||||
</Dropdown>
|
||||
</li>
|
||||
]) : [
|
||||
]}
|
||||
</ul>
|
||||
<Modal isOpen={this.state.canceledDeletionOpen}
|
||||
|
|
|
@ -32,6 +32,7 @@ module.exports.setSessionError = function (error) {
|
|||
};
|
||||
|
||||
module.exports.setSession = function (session) {
|
||||
session.loaded = true;
|
||||
return {
|
||||
type: Types.SET_SESSION,
|
||||
session: session
|
||||
|
|
|
@ -373,7 +373,8 @@ var Splash = injectIntl(React.createClass({
|
|||
] : []}
|
||||
<CNBanner />
|
||||
<div key="inner" className="inner">
|
||||
{this.props.session.user ? [
|
||||
{this.props.session.user ? (
|
||||
this.props.session.user ? [
|
||||
<div key="header" className="splash-header">
|
||||
{this.shouldShowWelcome() ? [
|
||||
<Welcome key="welcome"
|
||||
|
@ -386,7 +387,8 @@ var Splash = injectIntl(React.createClass({
|
|||
</div>
|
||||
] : [
|
||||
<Intro projectCount={this.state.projectCount} messages={messages} key="intro"/>
|
||||
]}
|
||||
]) : ()
|
||||
}
|
||||
|
||||
{featured}
|
||||
|
||||
|
|
Loading…
Reference in a new issue