[ProductTag] ProductTag컴포넌트 작업중, 관련 reducer/actions/apiConfig 추가 및 DetailPanel 수정

This commit is contained in:
jiwon93.son
2024-02-21 18:59:06 +09:00
parent b23d85fee3
commit 6ba5465976
8 changed files with 202 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ import React, { useEffect, useState } from "react";
import { useDispatch, useSelector } from "react-redux";
import { getProductCouponSearch } from "../../actions/couponActions";
import { getMainCategoryDetail } from "../../actions/mainActions";
import { popPanel } from "../../actions/panelActions";
import TBody from "../../components/TBody/TBody";
@@ -27,6 +28,12 @@ export default function ItemDetail() {
prdtId: panels[1].panelInfo?.prdtId,
})
);
dispatch(
getProductCouponSearch({
patnrId: panels[1]?.panelInfo?.patnrId,
prdtId: panels[1]?.panelInfo?.prdtId,
})
);
}
}, [dispatch, panels]);