Add list of products to the returned wishlist

This commit is contained in:
Luis Alvarez
2020-10-27 02:13:22 -05:00
parent 4772878234
commit 95fd730f0a
6 changed files with 88 additions and 23 deletions

View File

@@ -20,7 +20,8 @@ export default function Home({
categories,
brands,
}: InferGetStaticPropsType<typeof getStaticProps>) {
const { data } = useWishlist()
const { data } = useWishlist({ includeProducts: true })
console.log(data)
return (
<Container>
<div className="grid grid-cols-12 gap-8 mt-3 mb-20">