[HomePanel]BestSeller 부분 호출 변경
- BestSellerItem 삭제
This commit is contained in:
@@ -15,13 +15,13 @@ import Spottable from '@enact/spotlight/Spottable';
|
||||
|
||||
import SectionTitle from '../../../components/SectionTitle/SectionTitle';
|
||||
import TGrid from '../../../components/TGrid/TGrid';
|
||||
import TItemCard from '../../../components/TItemCard/TItemCard';
|
||||
import {
|
||||
$L,
|
||||
scaleH,
|
||||
scaleW,
|
||||
} from '../../../utils/helperMethods';
|
||||
import css from './BestSeller.module.less';
|
||||
import BestSellerItem from './BestSellerItem/BestSellerItem';
|
||||
|
||||
const SpottableComponent = Spottable("div");
|
||||
const Container = SpotlightContainerDecorator(
|
||||
@@ -38,9 +38,14 @@ const BestSeller = () => {
|
||||
const itemData = bestSellerDatas[index];
|
||||
if (index !== bestSellerDatas.length) {
|
||||
return (
|
||||
<BestSellerItem
|
||||
bestSellerData={bestSellerDatas}
|
||||
itemData={itemData}
|
||||
<TItemCard
|
||||
key={itemData.rankOrd}
|
||||
imageSource={itemData.imgUrl}
|
||||
imageAlt={itemData.prdtNm}
|
||||
productName={itemData.prdtNm}
|
||||
priceInfo={itemData.priceInfo}
|
||||
rank={itemData.rankOrd}
|
||||
type="vertical"
|
||||
isBestSeller
|
||||
{...rest}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user