Skip to content
Snippets Groups Projects
Commit 0a283039 authored by Audrey Hamelers's avatar Audrey Hamelers
Browse files

move props

parent c6169855
No related branches found
No related tags found
3 merge requests!380Pipeline changes,!379Build step added for the master branch,!378k8s release
......@@ -9,7 +9,7 @@ import styled from 'styled-components'
import { Page, Notification, A } from '../ui'
import SignInFooter from '../SignInFooter'
import Holiday from '../Holiday'
import { GET_PROP } from './operations'
import { GET_PROP } from '../operations'
const Flex = styled.div`
display: flex;
......
......@@ -4,7 +4,7 @@ import { withFormik } from 'formik'
import { graphql } from 'react-apollo'
import { createBrowserHistory } from 'history'
import Login from './Login'
import { LOGIN_USER } from './operations'
import { LOGIN_USER } from '../operations'
import redirectPath from './redirect'
import userHelper from '../helpers/userHelper'
......
import gql from 'graphql-tag'
export const GET_PROP = gql`
query FindProp($name: String!) {
findProp(name: $name) {
value
}
}
`
export const LOGIN_USER = gql`
mutation($input: SigninUserInput) {
epmc_signinUser(input: $input) {
user {
id
admin
email
}
token
}
}
`
import gql from 'graphql-tag'
export const GET_PROP = gql`
query FindProp($name: String!) {
findProp(name: $name) {
value
}
}
`
export const LOGIN_USER = gql`
mutation($input: SigninUserInput) {
epmc_signinUser(input: $input) {
user {
id
admin
email
}
token
}
}
`
export const GET_USER = gql`
query($email: String!) {
userByEmail(email: $email) {
......
......@@ -3,11 +3,12 @@ import { withFormik } from 'formik'
import { graphql } from 'react-apollo'
import { createBrowserHistory } from 'history'
import * as yup from 'yup' // for everything
import Signup from './Signup'
import { SIGNUP_USER, LOGIN_USER } from './operations'
import { LOGIN_USER } from '../operations'
import { handleSSO } from '../login/LoginContainer'
import redirectPath from '../login/redirect'
import userHelper from '../helpers/userHelper'
import Signup from './Signup'
import { SIGNUP_USER } from './operations'
const handleSubmit = (
values,
......
......@@ -18,15 +18,3 @@ export const SIGNUP_USER = gql`
}
}
`
export const LOGIN_USER = gql`
mutation($input: SigninUserInput) {
epmc_signinUser(input: $input) {
user {
id
admin
email
}
token
}
}
`
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment