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> <ConnectedProtectedRoutes>
<Route <Route
path="/" path="/"
exact
render={() => <div>HOME SWEET HOME</div>} render={() => <div>HOME SWEET HOME</div>}
/> />
<Route <Route
+6 -5
View File
@@ -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>
); );
} }