Simplified button
This commit is contained in:
@@ -17,6 +17,7 @@ class App extends Component<{}> {
|
|||||||
<ConnectedProtectedRoutes>
|
<ConnectedProtectedRoutes>
|
||||||
<Route
|
<Route
|
||||||
path="/"
|
path="/"
|
||||||
|
exact
|
||||||
render={() => <div>HOME SWEET HOME</div>}
|
render={() => <div>HOME SWEET HOME</div>}
|
||||||
/>
|
/>
|
||||||
<Route
|
<Route
|
||||||
|
|||||||
@@ -50,11 +50,12 @@ export class Login extends React.PureComponent<{
|
|||||||
onBlur={this.onPasswordBlur}
|
onBlur={this.onPasswordBlur}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{this.props.logging ? (
|
<button
|
||||||
"Logging in..."
|
onClick={this.onLoginClick}
|
||||||
) : (
|
disabled={this.props.logging}
|
||||||
<button onClick={this.onLoginClick}>Login</button>
|
>
|
||||||
)}
|
Login
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user