Merge branch 'master' into jb/product-improvements

This commit is contained in:
Julián Benegas
2020-10-23 09:23:36 -03:00
16 changed files with 142 additions and 12 deletions

View File

@@ -0,0 +1,3 @@
import logoutApi from '@lib/bigcommerce/api/customers/logout'
export default logoutApi()

View File

@@ -2,10 +2,12 @@ import useSignup from '@lib/bigcommerce/use-signup'
import { Layout } from '@components/core'
import { Logo, Modal, Button } from '@components/ui'
import useLogin from '@lib/bigcommerce/use-login'
import useLogout from '@lib/bigcommerce/use-logout'
export default function Login() {
const signup = useSignup()
const login = useLogin()
const logout = useLogout()
// TODO: use this method. It can take more than 5 seconds to do a signup
const handleSignup = async () => {
// TODO: validate the password and email before calling the signup

View File

@@ -27,6 +27,7 @@ export async function getStaticPaths() {
return {
paths: products.map((product) => `/product${product.node.path}`),
// If your store has tons of products, enable fallback mode to improve build times!
fallback: false,
}
}