Simplified button

This commit is contained in:
Federico Kereki
2018-07-25 22:27:39 -03:00
parent ea98091c89
commit c29c5d78b2
2 changed files with 7 additions and 5 deletions
+1
View File
@@ -17,6 +17,7 @@ class App extends Component<{}> {
<ConnectedProtectedRoutes>
<Route
path="/"
exact
render={() => <div>HOME SWEET HOME</div>}
/>
<Route
+6 -5
View File
@@ -50,11 +50,12 @@ export class Login extends React.PureComponent<{
onBlur={this.onPasswordBlur}
/>
</div>
{this.props.logging ? (
"Logging in..."
) : (
<button onClick={this.onLoginClick}>Login</button>
)}
<button
onClick={this.onLoginClick}
disabled={this.props.logging}
>
Login
</button>
</div>
);
}