Showing
1 changed file
with
3 additions
and
3 deletions
1 | import React, { useState } from "react"; | 1 | import React, { useState } from "react"; |
2 | import { useMutation } from "@apollo/react-hooks"; | 2 | import { useMutation } from "@apollo/react-hooks"; |
3 | -import { LOGIN, SIGNUP, LOCAL_LOG_IN } from "./AuthQueries"; | 3 | +import { LOG_IN, SIGN_UP, LOCAL_LOG_IN } from "./AuthQueries"; |
4 | import useInput from "../../Hooks/useInput"; | 4 | import useInput from "../../Hooks/useInput"; |
5 | import { toast } from "react-toastify"; | 5 | import { toast } from "react-toastify"; |
6 | import AuthPresenter from "./AuthPresenter"; | 6 | import AuthPresenter from "./AuthPresenter"; |
... | @@ -14,8 +14,8 @@ export default () => { | ... | @@ -14,8 +14,8 @@ export default () => { |
14 | const phoneNum = useInput(""); | 14 | const phoneNum = useInput(""); |
15 | const username = useInput(""); | 15 | const username = useInput(""); |
16 | 16 | ||
17 | - const [login] = useMutation(LOGIN); | 17 | + const [login] = useMutation(LOG_IN); |
18 | - const [createAccount] = useMutation(SIGNUP); | 18 | + const [createAccount] = useMutation(SIGN_UP); |
19 | const [loginState] = useMutation(LOCAL_LOG_IN); | 19 | const [loginState] = useMutation(LOCAL_LOG_IN); |
20 | 20 | ||
21 | let Auth; // mutation result variable | 21 | let Auth; // mutation result variable | ... | ... |
-
Please register or login to post a comment