MCPcopy Index your code
hub / github.com/Source-Controller/eCommerce-Fullstack / Allproducts

Function Allproducts

components/AllProducts.jsx:5–18  ·  view source on GitHub ↗
({allproducts: {image, name, slug, tags, price}})

Source from the content-addressed store, hash-verified

3import { urlFor } from '../lib/client'
4
5const Allproducts = ({allproducts: {image, name, slug, tags, price}}) => {
6 return (
7 <div>
8 <Link href={`/product/${slug.current}`}>
9 <div className='Allproduct-card'>
10 <img src={urlFor(image && image[0])} width={250} height={270} />
11 <p className='Allproduct-name'>{name}</p>
12 <p className='Allproduct-tags'>{tags}</p>
13 <p className='Allproduct-price'>${price}</p>
14 </div>
15 </Link>
16 </div>
17 )
18}
19
20export default Allproducts

Callers

nothing calls this directly

Calls 1

urlForFunction · 0.90

Tested by

no test coverage detected