Make sure there's a form so enter logs in for netlify auth

This commit is contained in:
Mathias Biilmann Christensen 2017-09-04 23:24:57 -07:00
parent afa5a9af2c
commit 30aa880ed2

View File

@ -12,7 +12,6 @@ export default class AuthenticationPage extends React.Component {
state = { username: "", password: "", errors: {} };
handleChange = (name, value) => {
this.setState({ ...this.state, [name]: value });
};
@ -49,6 +48,7 @@ export default class AuthenticationPage extends React.Component {
return (
<section className={styles.root}>
<Card className={styles.card}>
<form onSubmit={this.handleLogin}>
<img src={logo} width={100} role="presentation" />
{error && <p>
<span className={styles.errorMsg}>{error}</span>
@ -75,10 +75,10 @@ export default class AuthenticationPage extends React.Component {
<Button
className={styles.button}
raised
onClick={this.handleLogin}
>
<Icon type="login" /> Login
</Button>
</form>
</Card>
</section>
);