[MyPageItemCard / ReminersCard] CustomImage defaultImageItem 적용

This commit is contained in:
jiwon93.son
2024-05-10 10:17:11 +09:00
parent ab16bb2c18
commit fbc351b34a
2 changed files with 10 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ import classNames from "classnames";
import Spottable from "@enact/spotlight/Spottable";
import defaultImageItem from "../../../../assets/images/img-thumb-empty-product@3x.png";
import CustomImage from "../../../components/CustomImage/CustomImage";
import TCheckBox from "../../../components/TCheckBox/TCheckBox";
import { $L } from "../../../utils/helperMethods";
@@ -79,7 +80,13 @@ export default memo(function MyPageItemCard({
<p className={css.soldOutText}>{$L("Sold Out")}</p>
</div>
)}
<CustomImage src={thumbnail} delay={0} alt={title} />
<CustomImage
alt={title}
delay={0}
animationSpeed="fast"
src={thumbnail}
fallbackSrc={defaultImageItem}
/>
</div>
<div className={css.titleWrap}>
<p className={css.title}>{title}</p>

View File

@@ -5,6 +5,7 @@ import classNames from "classnames";
import Spotlight from "@enact/spotlight";
import Spottable from "@enact/spotlight/Spottable";
import defaultImageItem from "../../../../../assets/images/img-thumb-empty-product@3x.png";
import CustomImage from "../../../../components/CustomImage/CustomImage";
import TCheckBox from "../../../../components/TCheckBox/TCheckBox";
import * as HelperMethods from "../../../../utils/helperMethods";
@@ -105,6 +106,7 @@ export default memo(function RemindersCard({
delay={0}
alt={showId}
className={css.patncLogo}
fallbackSrc={defaultImageItem}
/>
{/* {dayOver === false && focus && (