logaction
This commit is contained in:
@@ -21,12 +21,12 @@ import liveShow from "../../../../assets/images/tag-liveshow.png";
|
||||
import { pushPanel } from "../../../actions/panelActions";
|
||||
import { startVideoPlayer } from "../../../actions/playActions";
|
||||
import CustomImage from "../../../components/CustomImage/CustomImage";
|
||||
import useLogService from "../../../hooks/useLogService";
|
||||
import usePriceInfo from "../../../hooks/usePriceInfo";
|
||||
import useScrollReset from "../../../hooks/useScrollReset";
|
||||
import { LOG_MENU, LOG_TP_NO, panel_names } from "../../../utils/Config";
|
||||
import { formatGMTString } from "../../../utils/helperMethods";
|
||||
import css from "./RollingUnit.module.less";
|
||||
import { sendLogTopContents } from "../../../actions/logActions";
|
||||
|
||||
const SpottableComponent = Spottable("div");
|
||||
|
||||
@@ -44,8 +44,6 @@ export default function RollingUnit({
|
||||
const rollingData = bannerData.bannerDetailInfos;
|
||||
const rollingDataLength = bannerData.bannerDetailInfos.length;
|
||||
|
||||
const { sendLogTopContents } = useLogService();
|
||||
|
||||
const dispatch = useDispatch();
|
||||
|
||||
const curationId = useSelector((state) => state.home?.bannerData?.curationId);
|
||||
@@ -378,7 +376,7 @@ export default function RollingUnit({
|
||||
|
||||
return () => {
|
||||
if (arrRef.current.every((number) => number !== startIndex)) {
|
||||
sendLogTopContents(params);
|
||||
dispatch(sendLogTopContents(params));
|
||||
arrRef.current.push(startIndex);
|
||||
}
|
||||
};
|
||||
@@ -387,7 +385,6 @@ export default function RollingUnit({
|
||||
curationId,
|
||||
curtNm,
|
||||
nowMenu,
|
||||
sendLogTopContents,
|
||||
shptmTmplCd,
|
||||
startIndex,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user