titemcard 로고부분 defaultimg처리.
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
@@ -1,25 +1,18 @@
|
||||
import React, {
|
||||
memo,
|
||||
useCallback,
|
||||
useEffect,
|
||||
useState,
|
||||
} from 'react';
|
||||
import React, { memo, useCallback, useEffect, useState } from "react";
|
||||
|
||||
import classNames from 'classnames';
|
||||
import classNames from "classnames";
|
||||
|
||||
import Spottable from '@enact/spotlight/Spottable';
|
||||
import Spottable from "@enact/spotlight/Spottable";
|
||||
|
||||
import defaultimgHorizontal
|
||||
from '../../../assets/images/img-thumb-empty-hor@3x.png';
|
||||
import defaultImageItem
|
||||
from '../../../assets/images/img-thumb-empty-product@3x.png';
|
||||
import defaultimgVertical
|
||||
from '../../../assets/images/img-thumb-empty-ver@3x.png';
|
||||
import IcLiveShow from '../../../assets/images/tag/tag-liveshow.png';
|
||||
import usePriceInfo from '../../hooks/usePriceInfo';
|
||||
import { $L } from '../../utils/helperMethods';
|
||||
import CustomImage from '../CustomImage/CustomImage';
|
||||
import css from './TItemCard.module.less';
|
||||
import defaultLogoImg from "../../../assets/images/ic-tab-partners-default@3x.png";
|
||||
import defaultimgHorizontal from "../../../assets/images/img-thumb-empty-hor@3x.png";
|
||||
import defaultImageItem from "../../../assets/images/img-thumb-empty-product@3x.png";
|
||||
import defaultimgVertical from "../../../assets/images/img-thumb-empty-ver@3x.png";
|
||||
import IcLiveShow from "../../../assets/images/tag/tag-liveshow.png";
|
||||
import usePriceInfo from "../../hooks/usePriceInfo";
|
||||
import { $L } from "../../utils/helperMethods";
|
||||
import CustomImage from "../CustomImage/CustomImage";
|
||||
import css from "./TItemCard.module.less";
|
||||
|
||||
const SpottableComponent = Spottable("div");
|
||||
|
||||
@@ -138,7 +131,7 @@ export default memo(function TItemCard({
|
||||
<CustomImage
|
||||
alt={imageAlt}
|
||||
delay={0}
|
||||
src={defaultImage ? defaultImage : imageSource}
|
||||
src={imageSource}
|
||||
fallbackSrc={
|
||||
type === "videoShow"
|
||||
? imgType === IMAGETYPES.imgHorizontal
|
||||
@@ -160,7 +153,7 @@ export default memo(function TItemCard({
|
||||
<div className={classNames(css.descWrap, catNm && css.hstNmWrap)}>
|
||||
{logo && (
|
||||
<div className={css.logo}>
|
||||
<img src={logo} />
|
||||
<CustomImage src={logo} fallbackSrc={defaultLogoImg} />
|
||||
</div>
|
||||
)}
|
||||
<h3 className={css.title}>{productName}</h3>
|
||||
|
||||
Reference in New Issue
Block a user