Make sure there's a form so enter logs in for netlify auth
This commit is contained in:
parent
afa5a9af2c
commit
30aa880ed2
@ -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>
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user