diff --git a/com.twin.app.shoptime/src/components/TItemCard/TItemCard.jsx b/com.twin.app.shoptime/src/components/TItemCard/TItemCard.jsx index 5d9ed629..f26e4e9b 100644 --- a/com.twin.app.shoptime/src/components/TItemCard/TItemCard.jsx +++ b/com.twin.app.shoptime/src/components/TItemCard/TItemCard.jsx @@ -28,6 +28,7 @@ export default memo(function ProductCard({ soldoutFlag, type = TYPE_VERTICAL, accType = false, + offerInfo, ...rest }) { const handleClick = useCallback( @@ -83,7 +84,11 @@ export default memo(function ProductCard({
- {discountRate ? discountedPrice : originalPrice} + {offerInfo != "" + ? offerInfo + : discountRate + ? discountedPrice + : originalPrice} {discountRate && ( {accType ? originalPrice : discountRate} )} diff --git a/com.twin.app.shoptime/src/components/TItemCard/TItemCard.module.less b/com.twin.app.shoptime/src/components/TItemCard/TItemCard.module.less index 33a0c662..db1dea02 100644 --- a/com.twin.app.shoptime/src/components/TItemCard/TItemCard.module.less +++ b/com.twin.app.shoptime/src/components/TItemCard/TItemCard.module.less @@ -145,7 +145,7 @@ gap: 5px; .font(@fontFamily: @baseFontBold, @fontSize: 30px); color: @PRIMARY_COLOR_RED; - + letter-spacing: -1px; span { .font(@fontFamily: @baseFont, @fontSize: 18px); color: @COLOR_GRAY04; diff --git a/com.twin.app.shoptime/src/features/main/mainSlice.js b/com.twin.app.shoptime/src/features/main/mainSlice.js index f9691234..2b80fb0a 100644 --- a/com.twin.app.shoptime/src/features/main/mainSlice.js +++ b/com.twin.app.shoptime/src/features/main/mainSlice.js @@ -35,7 +35,7 @@ export const getSubCategory = createAsyncThunk( } ); -//메인화면 Live Show 정보 조회 IF-LGSP-069 +//TOP20 영상 목록 조회 IF-LGSP-069 export const getTop20Show = createAsyncThunk( "main/getTop20Show", diff --git a/com.twin.app.shoptime/src/views/HomePanel/BestSeller/BestSeller.jsx b/com.twin.app.shoptime/src/views/HomePanel/BestSeller/BestSeller.jsx index 5086434a..3b514286 100644 --- a/com.twin.app.shoptime/src/views/HomePanel/BestSeller/BestSeller.jsx +++ b/com.twin.app.shoptime/src/views/HomePanel/BestSeller/BestSeller.jsx @@ -1,7 +1,5 @@ import React, { useCallback, useEffect, useState, useRef } from "react"; import { useSelector } from "react-redux"; -import TPanel from "../../../components/TPanel/TPanel"; -import TButton from "../../../components/TButton/TButton"; import { $L } from "../../../utils/helperMethods"; import css from "./BestSeller.module.less"; import classNames from "classnames"; @@ -10,17 +8,13 @@ import SpotlightContainerDecorator from "@enact/spotlight/SpotlightContainerDeco import Spotlight from "@enact/spotlight"; import Scroller from "@enact/sandstone/Scroller"; -import { changeAppStatus } from "../../../features/common/commonSlice"; -import { getSearch } from "../../../features/search/searchSlice"; - import TGrid from "../../../components/TGrid/TGrid"; import TItemCard from "../../../components/TItemCard/TItemCard"; import SectionTitle from "../../../components/SectionTitle/SectionTitle"; const Container = SpotlightContainerDecorator( - { enterTo: "last-focused" }, - "div", - "li" + { enterTo: "last-focused", leaveFor: { left: "", right: "" } }, + "div" ); const BestSeller = () => { @@ -50,6 +44,7 @@ const BestSeller = () => { rank={bestSeller.rankOrd} isBestSeller accType + offerInfo={bestSeller.offerInfo} /> ))} diff --git a/com.twin.app.shoptime/src/views/HomePanel/OnSale/OnSale.jsx b/com.twin.app.shoptime/src/views/HomePanel/OnSale/OnSale.jsx index 03db95d4..35dc37e6 100644 --- a/com.twin.app.shoptime/src/views/HomePanel/OnSale/OnSale.jsx +++ b/com.twin.app.shoptime/src/views/HomePanel/OnSale/OnSale.jsx @@ -17,15 +17,13 @@ import { getOnSaleInfo } from "../../../features/onSale/onSaleSlice"; import css from "./OnSale.module.less"; -const SpottableComponent = Spottable("div"); - const Container = SpotlightContainerDecorator( - { - enterTo: "default-element", - }, + { leaveFor: { left: "", right: "" }, enterTo: "last-focused" }, "div" ); +const SpottableComponent = Spottable("li"); + const OnSale = ({ isOnTop, spotlightId, @@ -59,7 +57,7 @@ const OnSale = ({ } item.priceInfo.split("|")[0]; return ( -