|
@@ -80,10 +80,12 @@ App = React.createClass({
|
|
<AccountsUIWrapper />
|
|
<AccountsUIWrapper />
|
|
|
|
|
|
{/* These are JSX comments. */}
|
|
{/* These are JSX comments. */}
|
|
- {/* Beware: for React, onsubmit is not the same as onSubmit, the former doesn't work */}
|
|
|
|
- <form className="new-task" onSubmit={this.handleSubmit} >
|
|
|
|
|
|
+ { this.data.currentUser ?
|
|
|
|
+ // Beware: for React, onsubmit is not the same as onSubmit, the former doesn't work.
|
|
|
|
+ <form className="new-task" onSubmit={this.handleSubmit} >
|
|
<input type="text" ref="textInput" placeholder="Type to add new tasks" />
|
|
<input type="text" ref="textInput" placeholder="Type to add new tasks" />
|
|
- </form>
|
|
|
|
|
|
+ </form> : ''
|
|
|
|
+ }
|
|
</header>
|
|
</header>
|
|
|
|
|
|
<ul>
|
|
<ul>
|