[TV앱테스트]Home / Popular show, Best Seller / + 아이콘 눌러도 아무 반응 없음

[CLM] https://harmony.lge.com:8443/issue/browse/SHOPTIME-2307
 
[DESC]
 - 더보기 관련 작업중에 링크부분이 잘못들어가있었던 부분 수정.
This commit is contained in:
junghoon86.park
2024-05-17 13:18:08 +09:00
parent b76afdfbb5
commit 68cf0628d6
3 changed files with 20 additions and 24 deletions

View File

@@ -145,12 +145,11 @@ const BestSeller = ({ order, scrollTopBody, panelInfo }) => {
)} )}
{drawChk && ( {drawChk && (
<div <div className={css.addItem} onFocus={handleScrollRight}>
className={css.addItem} <SpottableComponent
onClick={handleMoreCardClick} className={css.displayBox}
onFocus={handleScrollRight} onClick={handleMoreCardClick}
> ></SpottableComponent>
<SpottableComponent className={css.displayBox}></SpottableComponent>
</div> </div>
)} )}
</TScroller> </TScroller>

View File

@@ -160,12 +160,11 @@ const PopularShow = ({ homeChk = true, order, scrollTopBody, ...rest }) => {
)} )}
{drawChk && homeChk === true && ( {drawChk && homeChk === true && (
<div <div className={css.addItem} onFocus={handleScrollRight}>
className={css.addItem} <SpottableComponent
onClick={handleMoreCardClick} className={css.displayBox}
onFocus={handleScrollRight} onClick={handleMoreCardClick}
> ></SpottableComponent>
<SpottableComponent className={css.displayBox}></SpottableComponent>
</div> </div>
)} )}
</TScroller> </TScroller>

View File

@@ -45,8 +45,9 @@ const SubCategory = ({ order, scrollTopBody, catCd }) => {
const categoryInfos = useSelector( const categoryInfos = useSelector(
(state) => state.onSale.onSaleData?.data.categoryInfos (state) => state.onSale.onSaleData?.data.categoryInfos
); );
const categoryItemInfos = useSelector( const categoryItemInfos = useSelector(
(state) => state.main.subCategoryData?.categoryItemInfos?.subCatItemList (state) => state.main.subCategoryData?.categoryItemInfos
); );
const [currentLgCatCd, setCurrentLgCatCd] = useState(catCd ? catCd : null); const [currentLgCatCd, setCurrentLgCatCd] = useState(catCd ? catCd : null);
@@ -87,8 +88,8 @@ const SubCategory = ({ order, scrollTopBody, catCd }) => {
{ {
name: panel_names.CATEGORY_PANEL, name: panel_names.CATEGORY_PANEL,
panelInfo: { panelInfo: {
lgCatCd: categoryItemInfos[0].lgCatCd, lgCatCd: categoryItemInfos?.lgCatCd,
lgCatNm: categoryItemInfos[0].catNm, lgCatNm: categoryItemInfos?.catNm,
tab: 1, tab: 1,
}, },
}, },
@@ -98,8 +99,8 @@ const SubCategory = ({ order, scrollTopBody, catCd }) => {
}); });
useEffect(() => { useEffect(() => {
if (categoryInfos && !currentLgCatCd) { if (categoryInfos && !currentLgCatCd) {
const initialLgCatCd = categoryInfos[0].lgCatCd; const initialLgCatCd = categoryInfos.lgCatCd;
const initialLgCatNm = categoryInfos[0].catNm; const initialLgCatNm = categoryInfos.catNm;
setCurrentLgCatCd(initialLgCatCd); setCurrentLgCatCd(initialLgCatCd);
setCurrentLgCatNm(initialLgCatNm); setCurrentLgCatNm(initialLgCatNm);
} }
@@ -129,7 +130,7 @@ const SubCategory = ({ order, scrollTopBody, catCd }) => {
useEffect(() => { useEffect(() => {
if (categoryItemInfos) { if (categoryItemInfos) {
const prdtId = categoryItemInfos[0].prdtId; const prdtId = categoryItemInfos?.subCatItemList.prdtId;
setTargetId("spotlightId-" + removeDotAndColon(prdtId)); setTargetId("spotlightId-" + removeDotAndColon(prdtId));
} }
}, [categoryItemInfos]); }, [categoryItemInfos]);
@@ -204,7 +205,7 @@ const SubCategory = ({ order, scrollTopBody, catCd }) => {
noScrollByWheel noScrollByWheel
> >
{categoryItemInfos && {categoryItemInfos &&
categoryItemInfos.map( categoryItemInfos?.subCatItemList.map(
( (
{ {
prdtId, prdtId,
@@ -236,15 +237,12 @@ const SubCategory = ({ order, scrollTopBody, catCd }) => {
)} )}
{drawChk && ( {drawChk && (
<div <div className={css.addItem} onFocus={handleScrollRight}>
className={css.addItem}
onClick={handleMoreCardClick}
onFocus={handleScrollRight}
>
<SpottableComponent <SpottableComponent
className={css.displayBox} className={css.displayBox}
spotlightId={"home-cate-more-btn"} spotlightId={"home-cate-more-btn"}
data-catcd-num={currentLgCatCd} data-catcd-num={currentLgCatCd}
onClick={handleMoreCardClick}
></SpottableComponent> ></SpottableComponent>
</div> </div>
)} )}