[components] TItemCard, soldoutFlag default 수정
Detail Notes : 1. soldoutFlag default “N” 에서 “Y” 로 수정 2. FeaturedBrandsPaenl/ProductCard 삭제
This commit is contained in:
@@ -76,7 +76,7 @@ export default memo(function ProductCard({
|
||||
<div>
|
||||
<img src={imageSource} alt={imageAlt} />
|
||||
{discountRate && <span>{discountRate}</span>}
|
||||
{soldoutFlag && soldoutFlag === "N" && <div>{$L(SOLD_OUT_STRING)}</div>}
|
||||
{soldoutFlag && soldoutFlag === "Y" && <div>{$L(SOLD_OUT_STRING)}</div>}
|
||||
</div>
|
||||
<div>
|
||||
<h3>{productName}</h3>
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
import React, { memo } from "react";
|
||||
|
||||
import Spottable from "@enact/spotlight/Spottable";
|
||||
|
||||
const SpottableComponent = Spottable("div");
|
||||
|
||||
export default memo(function ProductCard({
|
||||
isBestSeller = false,
|
||||
productInfo,
|
||||
type = "vertical",
|
||||
...rest
|
||||
}) {
|
||||
const {
|
||||
freeShippingFlag,
|
||||
offerInfo,
|
||||
prdtId,
|
||||
prdtImgUrl,
|
||||
prdtNm,
|
||||
priceInfo,
|
||||
revwGrd,
|
||||
soldoutFlag,
|
||||
} = productInfo;
|
||||
return <SpottableComponent {...rest}>{prdtNm}</SpottableComponent>;
|
||||
});
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"main": "ProductCard.jsx",
|
||||
"styles": [
|
||||
"ProductCard.module.less"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user