mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
remove comment code
This commit is contained in:
@@ -1,23 +1,15 @@
|
||||
import React, { useMemo } from 'react';
|
||||
import React from 'react';
|
||||
import ProductImgs from './components/ProductImgs/ProductImgs'
|
||||
import ProductInfo from './components/ProductInfo/ProductInfo'
|
||||
import s from './ProductInfoDetail.module.scss'
|
||||
import { Product } from '@commerce/types/product'
|
||||
import { Collection } from '@framework/schema'
|
||||
import { getCategoryNameFromCollectionId } from 'src/utils/funtion.utils';
|
||||
|
||||
interface Props {
|
||||
productDetail: Product,
|
||||
collections: Collection[]
|
||||
}
|
||||
|
||||
const ProductInfoDetail = ({ productDetail, collections }: Props) => {
|
||||
// const dataWithCategoryName = useMemo(() => {
|
||||
// return {
|
||||
// ...productDetail,
|
||||
// collection: getCategoryNameFromCollectionId(collections, productDetail.collectionIds ? productDetail.collectionIds[0] : undefined)
|
||||
// }
|
||||
// }, [productDetail, collections])
|
||||
const ProductInfoDetail = ({ productDetail }: Props) => {
|
||||
return (
|
||||
<section className={s.productInfoDetail}>
|
||||
<ProductImgs productImage={productDetail.images}/>
|
||||
|
Reference in New Issue
Block a user