diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-03-22 21:11:15 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-03-22 21:11:15 -0400 |
| commit | 169b0953ad91f22bb3b2bf2d80d87ebfbe30d45d (patch) | |
| tree | e66454fb1055440996ae01cb980394d84715bf59 /frontend/components/Signup.js | |
| parent | a6af043686e4375d7944e91cae3d5b63c59edab0 (diff) | |
yay
Diffstat (limited to 'frontend/components/Signup.js')
| -rw-r--r-- | frontend/components/Signup.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/frontend/components/Signup.js b/frontend/components/Signup.js index 314d0ab..4adc1ad 100644 --- a/frontend/components/Signup.js +++ b/frontend/components/Signup.js @@ -1,8 +1,7 @@ import React, { Component } from 'react'; -import { graphql, compose, Mutation } from 'react-apollo'; -import { SIGNUP_MUTATION, CURRENT_USER_QUERY } from '../queries'; +import { Mutation } from 'react-apollo'; +import { SIGNUP_MUTATION } from '../queries'; import Form from './styles/Form'; -import catchError from '../lib/catchError'; import Error from './ErrorMessage'; class Signup extends Component { @@ -20,7 +19,7 @@ class Signup extends Component { render() { return ( <Mutation mutation={SIGNUP_MUTATION} variables={this.state}> - {(signup, { data, loading, error }) => ( + {(signup, { loading, error }) => ( <Form onSubmit={e => { e.preventDefault(); |
