initial pass

This commit is contained in:
Connor Hudson 2016-05-31 16:37:42 -04:00
parent d645e95bd7
commit e402363576
3 changed files with 114 additions and 109 deletions

View file

@ -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}

View file

@ -32,6 +32,7 @@ module.exports.setSessionError = function (error) {
};
module.exports.setSession = function (session) {
session.loaded = true;
return {
type: Types.SET_SESSION,
session: session

View file

@ -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}