[Log] IF-LGSP-LOG-001 / Live 시청 이력 (반영), IF-LGSP-LOG-005 / GNB 이력 (FULL 추가 반영)
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user