[homepanel]homeonsaleitem 이미지 customImage 로변경
This commit is contained in:
@@ -6,6 +6,7 @@ import Spottable from "@enact/spotlight/Spottable";
|
||||
|
||||
import defaultImage from "../../../../../assets/images/img-thumb-empty-product@3x.png";
|
||||
import { popPanel, pushPanel } from "../../../../actions/panelActions";
|
||||
import CustomImage from "../../../../components/CustomImage/CustomImage";
|
||||
import usePriceInfo from "../../../../hooks/usePriceInfo";
|
||||
import { panel_names } from "../../../../utils/Config";
|
||||
import { $L } from "../../../../utils/helperMethods";
|
||||
@@ -40,10 +41,13 @@ export default function HomeOnSaleItem({ homeOnSaleInfos, itemData, ...rest }) {
|
||||
onClick={() => handleCardClick(itemData)}
|
||||
{...rest}
|
||||
>
|
||||
<img
|
||||
<CustomImage
|
||||
delay={0}
|
||||
src={itemData.imgUrl ? itemData.imgUrl : defaultImage}
|
||||
animationSpeed="fast"
|
||||
className={css.onSaleItemListImg}
|
||||
/>
|
||||
|
||||
<div className={css.onSaleItemListBox}>
|
||||
<div className={css.onSaleItemListBoxTitle}>{itemData.catNm}</div>
|
||||
{discountRate && (
|
||||
|
||||
Reference in New Issue
Block a user