forked from crowetic/commerce
Added logout demo
This commit is contained in:
parent
1d7365bc38
commit
de80a9edd1
@ -2,10 +2,12 @@ import useSignup from '@lib/bigcommerce/use-signup'
|
|||||||
import { Layout } from '@components/core'
|
import { Layout } from '@components/core'
|
||||||
import { Logo, Modal, Button } from '@components/ui'
|
import { Logo, Modal, Button } from '@components/ui'
|
||||||
import useLogin from '@lib/bigcommerce/use-login'
|
import useLogin from '@lib/bigcommerce/use-login'
|
||||||
|
import useLogout from '@lib/bigcommerce/use-logout'
|
||||||
|
|
||||||
export default function Login() {
|
export default function Login() {
|
||||||
const signup = useSignup()
|
const signup = useSignup()
|
||||||
const login = useLogin()
|
const login = useLogin()
|
||||||
|
const logout = useLogout()
|
||||||
// TODO: use this method. It can take more than 5 seconds to do a signup
|
// TODO: use this method. It can take more than 5 seconds to do a signup
|
||||||
const handleSignup = async () => {
|
const handleSignup = async () => {
|
||||||
// TODO: validate the password and email before calling the signup
|
// TODO: validate the password and email before calling the signup
|
||||||
|
Loading…
x
Reference in New Issue
Block a user