[components] TItemCard, props & element 추가

Detail Notes :

1. props → isLive 추가
2. element → CustomImage 추가
3. import → tag-liveshow.svg
This commit is contained in:
younghoon100.park
2024-03-05 17:57:20 +09:00
parent 5658f5548a
commit a1a1e9891c
2 changed files with 10 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ import classNames from "classnames";
import Spottable from "@enact/spotlight/Spottable";
import IcLiveShow from "../../../assets/images/tag/tag-liveshow.svg";
import usePriceInfo from "../../hooks/usePriceInfo";
import { $L } from "../../utils/helperMethods";
import CustomImage from "../CustomImage/CustomImage";
@@ -41,6 +42,7 @@ export default memo(function TItemCard({
logo,
logoDisplay = false,
isBestSeller = false,
isLive = false,
onBlur,
onClick,
onFocus,
@@ -117,6 +119,9 @@ export default memo(function TItemCard({
<span>{rank}</span>
</div>
)}
{isLive && (
<CustomImage className={css.liveTag} src={IcLiveShow} alt="" />
)}
</SpottableComponent>
);
});

View File

@@ -271,4 +271,9 @@
}
}
}
.liveTag {
.size(@w: 108px, @h: 48px);
.position(@position: absolute, @top: 30px, @left: 30px);
}
}