Skip to content

Commit

Permalink
removing unsupported language features.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Iloro committed Mar 25, 2016
1 parent 9eca156 commit ad4cc9e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/auth.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ export default React.createClass( {
},

render() {
const { isAuthenticated, authPending: pending } = this.props;
const submitClasses = classNames( 'button', 'button-primary', { pending } );
const submitClasses = classNames( 'button', 'button-primary', { pending: this.props.authPending } );

return (
<div className="login">
Expand All @@ -41,7 +40,7 @@ export default React.createClass( {
</span>
</label>
</div>
{ ( isAuthenticated === false ) &&
{ ( this.props.isAuthenticated === false ) &&
<p className="login-auth-message login-auth-failure">The credentials you entered don't match</p>
}
<div className="login-actions">
Expand All @@ -50,7 +49,7 @@ export default React.createClass( {
onClick={ this.onLogin }
type="submit"
>
{ authPending
{ this.props.authPending
? <Spinner />
: 'Log in'
}
Expand Down

0 comments on commit ad4cc9e

Please sign in to comment.