[HomePanel] 필요없는 코드 삭제 및 변경

- subcategory 필요없는 코드 제거.
- popularshow부분 변경
This commit is contained in:
junghoon86.park
2024-02-01 15:15:46 +09:00
parent d620500efd
commit 76956dfa35
2 changed files with 1 additions and 14 deletions

View File

@@ -12,7 +12,7 @@ import css from "../PopularShow/PopularShow.module.less";
const Container = SpotlightContainerDecorator(
{ enterTo: "last-focused" },
"section"
"div"
);
const SpottableComponent = Spottable("li");

View File

@@ -19,7 +19,6 @@ const Container = SpotlightContainerDecorator(
"div"
);
const SpottableComponent = Spottable("li");
const SubCategory = () => {
const dispatch = useDispatch();
@@ -29,7 +28,6 @@ const SubCategory = () => {
const subCategoryData = useSelector(
(state) => state.main.subCategoryData.categoryItemInfos
);
const testchk = useSelector((state) => state);
const [currentLgCatCd, setCurrentLgCatCd] = useState();
const handleCategoryNav = (lgCatCd) => {
@@ -45,20 +43,10 @@ const SubCategory = () => {
const initialLgCatCd = categoryInfos[0].lgCatCd;
setCurrentLgCatCd(initialLgCatCd);
}
getSubCategory({
lgCatCd: currentLgCatCd,
patnrIdList: null,
pageSize: null,
tabType: "CAT00102",
filterType: "CAT00202",
});
}, []);
useEffect(() => {
if (currentLgCatCd) {
dispatch(
getOnSaleInfo({ categoryIncFlag: "Y", lgCatCd: currentLgCatCd })
);
dispatch(
getSubCategory({
lgCatCd: currentLgCatCd,
@@ -79,7 +67,6 @@ const SubCategory = () => {
onCategoryNavClick={handleCategoryNav}
type="home"
/>
<TGrid type="home">
{subCategoryData &&
subCategoryData.slice(0, 9).map((item) => {