Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2020-05-16 23:16:46 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fc50f3a229a7ca75c9f117bbb8c87a46a7808195
fc50f3a2
1 parent
1fec15b9
update queries name
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
front/src/Routes/Auth/AuthContainer.js
front/src/Routes/Auth/AuthContainer.js
View file @
fc50f3a
import
React
,
{
useState
}
from
"react"
;
import
{
useMutation
}
from
"@apollo/react-hooks"
;
import
{
LOG
IN
,
SIGN
UP
,
LOCAL_LOG_IN
}
from
"./AuthQueries"
;
import
{
LOG
_IN
,
SIGN_
UP
,
LOCAL_LOG_IN
}
from
"./AuthQueries"
;
import
useInput
from
"../../Hooks/useInput"
;
import
{
toast
}
from
"react-toastify"
;
import
AuthPresenter
from
"./AuthPresenter"
;
...
...
@@ -14,8 +14,8 @@ export default () => {
const
phoneNum
=
useInput
(
""
);
const
username
=
useInput
(
""
);
const
[
login
]
=
useMutation
(
LOGIN
);
const
[
createAccount
]
=
useMutation
(
SIGNUP
);
const
[
login
]
=
useMutation
(
LOG
_
IN
);
const
[
createAccount
]
=
useMutation
(
SIGN
_
UP
);
const
[
loginState
]
=
useMutation
(
LOCAL_LOG_IN
);
let
Auth
;
// mutation result variable
...
...
Please
register
or
login
to post a comment