[homepanel]homeonsaleitem 이미지 customImage 로변경

This commit is contained in:
junghoon86.park
2024-04-15 15:31:44 +09:00
parent f827181d0b
commit f3f90431aa

View File

@@ -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 && (