[Log] IF-LGSP-LOG-001 / Live 시청 이력 (반영), IF-LGSP-LOG-005 / GNB 이력 (FULL 추가 반영)

This commit is contained in:
younghoon100.park
2024-06-13 19:38:52 +09:00
parent 2c19f2895e
commit 52a0fb0898
9 changed files with 252 additions and 34 deletions

View File

@@ -6,7 +6,7 @@ import Spotlight from "@enact/spotlight";
import { updatePanel } from "../../../../actions/panelActions";
import TVirtualGridList from "../../../../components/TVirtualGridList/TVirtualGridList";
import { panel_names } from "../../../../utils/Config";
import { LOG_MENU, panel_names } from "../../../../utils/Config";
import ListEmptyContents from "../../../ImagePanel/ImageSideContents/ListEmptyContents/ListEmptyContents";
import PlayerItemCard, { TYPES } from "../../PlayerItemCard/PlayerItemCard";
import css from "./LiveChannelContents.module.less";
@@ -16,9 +16,19 @@ export default function LiveChannelContents({
selectedIndex,
setSelectedIndex,
tabIndex,
handleItemFocus,
}) {
const dispatch = useDispatch();
const handleFocus = useCallback(
() => () => {
if (handleItemFocus) {
handleItemFocus(LOG_MENU.FULL_LIVE_CHANNELS);
}
},
[handleItemFocus]
);
const renderItem = useCallback(
({ index, ...rest }) => {
const {
@@ -55,13 +65,14 @@ export default function LiveChannelContents({
productName={showNm}
patnerName={patncNm}
onClick={handleItemClick}
onFocus={handleFocus()}
type={TYPES.liveHorizontal}
spotlightId={`tabChannel-video-${index}`}
liveInfo={liveInfos[index]}
/>
);
},
[liveInfos, dispatch]
[liveInfos, dispatch, handleFocus]
);
return (