diff --git a/com.twin.app.shoptime/src/components/TItemCard/TItemCard.jsx b/com.twin.app.shoptime/src/components/TItemCard/TItemCard.jsx index f26e4e9b..85e651d8 100644 --- a/com.twin.app.shoptime/src/components/TItemCard/TItemCard.jsx +++ b/com.twin.app.shoptime/src/components/TItemCard/TItemCard.jsx @@ -15,7 +15,7 @@ const TYPE_HORIZONTAL = "horizontal"; const SOLD_OUT_STRING = "SOLD OUT"; const TOP_STRING = "TOP"; -export default memo(function ProductCard({ +export default memo(function TItemCard({ children, imageAlt, imageSource, @@ -27,8 +27,6 @@ export default memo(function ProductCard({ rank, soldoutFlag, type = TYPE_VERTICAL, - accType = false, - offerInfo, ...rest }) { const handleClick = useCallback( @@ -46,9 +44,7 @@ export default memo(function ProductCard({ .map((item) => item.trim()); let originalPrice, discountedPrice, discountRate; - if (priceParts.length === 5) { - [originalPrice, discountedPrice, , discountRate] = priceParts; - } else if (priceParts.length === 4) { + if (priceParts.length === 4) { [originalPrice, discountedPrice, , discountRate] = priceParts; } else if (priceParts.length === 2) { [originalPrice, discountedPrice] = priceParts; @@ -84,14 +80,8 @@ export default memo(function ProductCard({

{productName}

- {offerInfo != "" - ? offerInfo - : discountRate - ? discountedPrice - : originalPrice} - {discountRate && ( - {accType ? originalPrice : discountRate} - )} + {discountRate ? discountedPrice : originalPrice} + {discountRate && {originalPrice}}

{isBestSeller && rank && (