Simplified button
This commit is contained in:
@@ -17,6 +17,7 @@ class App extends Component<{}> {
|
||||
<ConnectedProtectedRoutes>
|
||||
<Route
|
||||
path="/"
|
||||
exact
|
||||
render={() => <div>HOME SWEET HOME</div>}
|
||||
/>
|
||||
<Route
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user