[homeonsale] panelinfo 에 상품코드 추가.
This commit is contained in:
@@ -4,6 +4,7 @@ import { useDispatch } from "react-redux";
|
||||
|
||||
import Spottable from "@enact/spotlight/Spottable";
|
||||
|
||||
import defaultImage from "../../../../../assets/images/img-thumb-empty-product@3x.png";
|
||||
import { popPanel, pushPanel } from "../../../../actions/panelActions";
|
||||
import usePriceInfo from "../../../../hooks/usePriceInfo";
|
||||
import { panel_names } from "../../../../utils/Config";
|
||||
@@ -26,6 +27,7 @@ export default function HomeOnSaleItem({ homeOnSaleInfos, itemData, ...rest }) {
|
||||
name: panel_names.ON_SALE_PANEL,
|
||||
panelInfo: {
|
||||
lgCatCd: itemData.lgCatCd,
|
||||
prdtId: itemData.prdtId,
|
||||
},
|
||||
})
|
||||
);
|
||||
@@ -38,7 +40,10 @@ export default function HomeOnSaleItem({ homeOnSaleInfos, itemData, ...rest }) {
|
||||
onClick={() => handleCardClick(itemData)}
|
||||
{...rest}
|
||||
>
|
||||
<img src={itemData.imgUrl} className={css.onSaleItemListImg} />
|
||||
<img
|
||||
src={itemData.imgUrl ? itemData.imgUrl : defaultImage}
|
||||
className={css.onSaleItemListImg}
|
||||
/>
|
||||
<div className={css.onSaleItemListBox}>
|
||||
<div className={css.onSaleItemListBoxTitle}>{itemData.catNm}</div>
|
||||
{discountRate && (
|
||||
|
||||
Reference in New Issue
Block a user