forked from crowetic/commerce
Search functionality
This commit is contained in:
parent
2a087905a7
commit
809295480f
@ -8,10 +8,17 @@ import type { Product } from '@lib/bigcommerce/api/operations/get-product'
|
|||||||
import useAddItem from '@lib/bigcommerce/cart/use-add-item'
|
import useAddItem from '@lib/bigcommerce/cart/use-add-item'
|
||||||
import { useUI } from '@components/ui/context'
|
import { useUI } from '@components/ui/context'
|
||||||
|
|
||||||
|
interface ProductData {
|
||||||
|
name: string
|
||||||
|
images: any
|
||||||
|
prices: any
|
||||||
|
path: string
|
||||||
|
}
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
className?: string
|
className?: string
|
||||||
children?: any
|
children?: any
|
||||||
product: Product
|
product: Product & ProductData
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Choices {
|
interface Choices {
|
||||||
@ -41,7 +48,6 @@ const ProductView: FC<Props> = ({ product, className }) => {
|
|||||||
|
|
||||||
const activeSize = choices.size
|
const activeSize = choices.size
|
||||||
const activeColor = choices.color
|
const activeColor = choices.color
|
||||||
console.log(product, product.images.edges)
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={cn(s.root, className)}>
|
<div className={cn(s.root, className)}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user