[OnSalePanel] CategoryNav 노출 조건 추가

Detail Notes :
This commit is contained in:
younghoon100.park
2024-03-27 17:11:45 +09:00
parent 78b1a78943
commit 5122ed1894

View File

@@ -72,7 +72,9 @@ export default function OnSalePanel() {
getOnSaleInfo({ lgCatCd: selectedLgCatCd, saleInfosIncFlag: "Y" })
);
Spotlight.focus("spotlightId-" + selectedLgCatCd);
timerRef.current = setTimeout(() =>
Spotlight.focus("spotlightId-" + selectedLgCatCd)
);
}
}, [selectedLgCatCd, dispatch]);
@@ -105,12 +107,14 @@ export default function OnSalePanel() {
return (
<TPanel className={css.tPanel} id={"tPanel"}>
<OnSaleNav
categoryInfos={categories}
scrollTop={scrollTop}
selectedLgCatCd={selectedLgCatCd}
setSelectedLgCatCd={setSelectedLgCatCd}
/>
{categories && categories.length > 0 && (
<OnSaleNav
categoryInfos={categories}
scrollTop={scrollTop}
selectedLgCatCd={selectedLgCatCd}
setSelectedLgCatCd={setSelectedLgCatCd}
/>
)}
<TBody className={css.tBody} cbScrollTo={getScrollTo}>
{saleInfos &&