From 8a5825d52271d712ec7c8348447d433067e13ef2 Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Thu, 13 Sep 2018 14:18:56 -0400 Subject: DONE --- finished-application/frontend/components/Signin.js | 79 ---------------------- 1 file changed, 79 deletions(-) delete mode 100644 finished-application/frontend/components/Signin.js (limited to 'finished-application/frontend/components/Signin.js') diff --git a/finished-application/frontend/components/Signin.js b/finished-application/frontend/components/Signin.js deleted file mode 100644 index 53cdb76..0000000 --- a/finished-application/frontend/components/Signin.js +++ /dev/null @@ -1,79 +0,0 @@ -import React, { Component } from 'react'; -import { Mutation } from 'react-apollo'; -import gql from 'graphql-tag'; -import { CURRENT_USER_QUERY } from './User'; -import Error from './ErrorMessage'; -import Form from './styles/Form'; - -const SIGNIN_MUTATION = gql` - mutation SIGNIN_MUTATION($email: String!, $password: String!) { - signin(email: $email, password: $password) { - id - email - name - } - } -`; - -class Signin extends Component { - state = { - email: '', - password: '', - }; - - saveToState = e => { - const { name, value } = e.target; - this.setState({ [name]: value }); - }; - - render() { - return ( - - {(signin, { loading, error }) => ( -
{ - e.preventDefault(); - signin(); - }} - > - -
- - - - - -
- - )} -
- ); - } -} - -export default Signin; -export { SIGNIN_MUTATION }; -- cgit v1.3