YouMayLike 마우스모드일때는 포커스가 되어도 확장되지 않게 수정
This commit is contained in:
@@ -16,7 +16,6 @@ import YouMayLike from "./container/YouMayLike";
|
||||
import css from "./DetailPanel.module.less";
|
||||
|
||||
export default function ItemDetail() {
|
||||
const [productData, setProductData] = useState();
|
||||
const [panelInfo, setPaneInfo] = useState();
|
||||
const data = useSelector((state) => state.main.productData);
|
||||
const panels = useSelector((state) => state.panels.panels);
|
||||
@@ -41,24 +40,8 @@ export default function ItemDetail() {
|
||||
prdtId: panelInfo?.prdtId,
|
||||
})
|
||||
);
|
||||
// dispatch(
|
||||
// getMainCategoryDetail({
|
||||
// patnrId: 1,
|
||||
// prdtId: "A523924",
|
||||
// })
|
||||
// );
|
||||
}
|
||||
}, [dispatch, panelInfo]);
|
||||
|
||||
useEffect(() => {
|
||||
setProductData(data);
|
||||
// dispatch(
|
||||
// getMainYouMayLike({
|
||||
// lgCatCd: productData?.catCd,
|
||||
// })
|
||||
// );
|
||||
//console.log("#productdata", productData);
|
||||
}, [data, dispatch]);
|
||||
}, [dispatch, panels, panelInfo]);
|
||||
|
||||
const onClick = () => {
|
||||
dispatch(popPanel());
|
||||
@@ -67,7 +50,7 @@ export default function ItemDetail() {
|
||||
<TPanel isTabActivated={false}>
|
||||
<THeader
|
||||
className={css.header}
|
||||
title={productData?.prdtNm}
|
||||
title={data?.prdtNm}
|
||||
onBackButton
|
||||
onClick={onClick}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user