summaryrefslogtreecommitdiffstats
path: root/frontend/components/Signin.js
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-03-12 14:06:25 -0400
committerWes Bos <wesbos@gmail.com>2018-03-12 14:06:25 -0400
commit46a0ba30ef54a7e36206481a4f5b2bf1f9702fca (patch)
treea95fd534fc27761d8b26d0dffcdb5f300f7a61c7 /frontend/components/Signin.js
parentf7bea2d1b7be2b70dceb25c9837f608b538e9cec (diff)
wip
Diffstat (limited to 'frontend/components/Signin.js')
-rw-r--r--frontend/components/Signin.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/frontend/components/Signin.js b/frontend/components/Signin.js
index 752199b..423e9e8 100644
--- a/frontend/components/Signin.js
+++ b/frontend/components/Signin.js
@@ -2,6 +2,8 @@ import React, { Component } from 'react';
import { graphql, compose } from 'react-apollo';
import { SIGNIN_MUTATION, CURRENT_USER_QUERY } from '../queries';
+import Form from './styles/Form';
+
class Signin extends Component {
state = {
email: `wesbos@gmail.com`,
@@ -41,7 +43,7 @@ class Signin extends Component {
{this.state.errors ? this.state.errors.map(err => <p>{err.message}</p>) : null}
- <form onSubmit={this.loginUser}>
+ <Form onSubmit={this.loginUser}>
<label htmlFor="email">
Email
<input value={this.state.email} onChange={this.saveToState} name="email" type="text" placeholder="email" />
@@ -61,7 +63,7 @@ class Signin extends Component {
</label>
<button type="submit">Sign In!</button>
- </form>
+ </Form>
</div>
);
}