[components] TItemCard, props 조건 수정
Detail Notes : 1. spotlightId 조건 수정
This commit is contained in:
@@ -1,17 +1,25 @@
|
||||
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 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");
|
||||
|
||||
@@ -123,9 +131,7 @@ export default memo(function TItemCard({
|
||||
onBlur={_onBlur}
|
||||
onClick={_onClick}
|
||||
onFocus={_onFocus}
|
||||
spotlightId={
|
||||
productId ? "spotlightId-" + removeDotAndColon(productId) : spotlightId
|
||||
}
|
||||
spotlightId={spotlightId ?? "spotlightId-" + removeDotAndColon(productId)}
|
||||
{...rest}
|
||||
>
|
||||
<div className={css.imageWrap}>
|
||||
|
||||
Reference in New Issue
Block a user