mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 12:24:18 +00:00
♻️ enhan: add link product detail demo
:%s
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
import { ROUTE } from 'src/utils/constanst.utils'
|
||||||
import { ProductProps } from 'src/utils/types.utils'
|
import { ProductProps } from 'src/utils/types.utils'
|
||||||
import ButtonCommon from '../ButtonCommon/ButtonCommon'
|
import ButtonCommon from '../ButtonCommon/ButtonCommon'
|
||||||
import ButtonIconBuy from '../ButtonIconBuy/ButtonIconBuy'
|
import ButtonIconBuy from '../ButtonIconBuy/ButtonIconBuy'
|
||||||
@@ -31,7 +32,7 @@ const ProductCard = ({
|
|||||||
return (
|
return (
|
||||||
<div className={s.productCardWarpper}>
|
<div className={s.productCardWarpper}>
|
||||||
<div className={s.cardTop}>
|
<div className={s.cardTop}>
|
||||||
<Link href="#">
|
<Link href={`${ROUTE.PRODUCT_DETAIL}/test`}>
|
||||||
<div className={s.productImage}>
|
<div className={s.productImage}>
|
||||||
<img src={imageSrc} alt="image" />
|
<img src={imageSrc} alt="image" />
|
||||||
</div>
|
</div>
|
||||||
@@ -42,7 +43,7 @@ const ProductCard = ({
|
|||||||
</div>
|
</div>
|
||||||
<div className={s.cardMid}>
|
<div className={s.cardMid}>
|
||||||
<div className={s.cardMidTop}>
|
<div className={s.cardMidTop}>
|
||||||
<Link href="#">
|
<Link href={`${ROUTE.PRODUCT_DETAIL}/test`}>
|
||||||
<div className={s.productname}>{name} </div>
|
<div className={s.productname}>{name} </div>
|
||||||
</Link>
|
</Link>
|
||||||
<div className={s.productWeight}>{weight}</div>
|
<div className={s.productWeight}>{weight}</div>
|
||||||
|
Reference in New Issue
Block a user