Make sure there's a form so enter logs in for netlify auth
This commit is contained in:
@ -12,7 +12,6 @@ export default class AuthenticationPage extends React.Component {
|
|||||||
|
|
||||||
state = { username: "", password: "", errors: {} };
|
state = { username: "", password: "", errors: {} };
|
||||||
|
|
||||||
|
|
||||||
handleChange = (name, value) => {
|
handleChange = (name, value) => {
|
||||||
this.setState({ ...this.state, [name]: value });
|
this.setState({ ...this.state, [name]: value });
|
||||||
};
|
};
|
||||||
@ -49,6 +48,7 @@ export default class AuthenticationPage extends React.Component {
|
|||||||
return (
|
return (
|
||||||
<section className={styles.root}>
|
<section className={styles.root}>
|
||||||
<Card className={styles.card}>
|
<Card className={styles.card}>
|
||||||
|
<form onSubmit={this.handleLogin}>
|
||||||
<img src={logo} width={100} role="presentation" />
|
<img src={logo} width={100} role="presentation" />
|
||||||
{error && <p>
|
{error && <p>
|
||||||
<span className={styles.errorMsg}>{error}</span>
|
<span className={styles.errorMsg}>{error}</span>
|
||||||
@ -75,10 +75,10 @@ export default class AuthenticationPage extends React.Component {
|
|||||||
<Button
|
<Button
|
||||||
className={styles.button}
|
className={styles.button}
|
||||||
raised
|
raised
|
||||||
onClick={this.handleLogin}
|
|
||||||
>
|
>
|
||||||
<Icon type="login" /> Login
|
<Icon type="login" /> Login
|
||||||
</Button>
|
</Button>
|
||||||
|
</form>
|
||||||
</Card>
|
</Card>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user