[251119] fix: Popular show video playing
🕐 커밋 시간: 2025. 11. 19. 20:49:19 📊 변경 통계: • 총 파일: 1개 • 추가: +9줄 • 삭제: -2줄 📝 수정된 파일: ~ com.twin.app.shoptime/src/views/HomePanel/PopularShow/PopularShow.jsx
This commit is contained in:
@@ -18,7 +18,7 @@ import Spottable from '@enact/spotlight/Spottable';
|
||||
import { getContainerId } from '@enact/spotlight/src/container';
|
||||
|
||||
import { updateHomeInfo } from '../../../actions/homeActions';
|
||||
import { pushPanel } from '../../../actions/panelActions';
|
||||
import { pushPanel, popPanel } from '../../../actions/panelActions';
|
||||
import { startVideoPlayer } from '../../../actions/playActions';
|
||||
import SectionTitle from '../../../components/SectionTitle/SectionTitle';
|
||||
import Tag from '../../../components/TItemCard/Tag';
|
||||
@@ -69,6 +69,7 @@ const PopularShow = ({
|
||||
const dispatch = useDispatch();
|
||||
|
||||
const { cursorVisible } = useSelector((state) => state.common.appStatus);
|
||||
const panels = useSelector((state) => state.panels.panels);
|
||||
|
||||
const topInfos = useSelector((state) => state.main.top20ShowData.topInfos);
|
||||
const recommendInfo = useSelector((state) => state.foryou?.recommendInfo?.recommendShow);
|
||||
@@ -124,6 +125,12 @@ const PopularShow = ({
|
||||
|
||||
const handleCardClick = useCallback(
|
||||
(patnrId, showId, catCd, showUrl) => () => {
|
||||
const topPanel = panels[panels.length - 1];
|
||||
|
||||
if (topPanel?.name === panel_names.PLAYER_PANEL) {
|
||||
dispatch(popPanel());
|
||||
}
|
||||
|
||||
dispatch(
|
||||
startVideoPlayer({
|
||||
showId,
|
||||
@@ -135,7 +142,7 @@ const PopularShow = ({
|
||||
})
|
||||
);
|
||||
},
|
||||
[dispatch]
|
||||
[dispatch, panels]
|
||||
);
|
||||
|
||||
const handleMoreCardClick = useCallback(() => {
|
||||
|
||||
Reference in New Issue
Block a user