[components] TItemCard, soldoutFlag default 수정

Detail Notes :

1. soldoutFlag default “N” 에서 “Y” 로 수정
2. FeaturedBrandsPaenl/ProductCard 삭제
This commit is contained in:
younghoon100.park
2024-01-29 16:48:09 +09:00
parent a764348c74
commit c7e3f8e982
4 changed files with 1 additions and 31 deletions

View File

@@ -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>

View File

@@ -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>;
});

View File

@@ -1,6 +0,0 @@
{
"main": "ProductCard.jsx",
"styles": [
"ProductCard.module.less"
]
}