4
0
forked from crowetic/commerce

Normalizing more operations

This commit is contained in:
Belen Curcio 2021-01-10 16:21:09 -03:00
parent ac58e4a351
commit def1cf0778
3 changed files with 5 additions and 1 deletions

View File

@ -106,6 +106,8 @@ Main folder and its exposed functions
- `product`
- usePrice
- useSearch
- getProduct
- getAllProducts
- `wishlist`
- useWishlist
- addWishlistItem

View File

@ -111,7 +111,7 @@ async function getProduct({
setProductLocaleMeta(product)
}
return { product: normalizeProduct(product as any) }
return { product: normalizeProduct(product) }
}
return {}

View File

@ -1,2 +1,4 @@
export { default as usePrice } from './use-price'
export { default as useSearch } from './use-search'
export { default as getProduct } from '../api/operations/get-product'
export { default as getAllProducts } from '../api/operations/get-all-products'