[SHOPTIME-3905] Trending Now / full 영상 / 상품 detail 진입 후 영상 재생 / 이전 버튼 클릭 시 화면 이슈

[수정사항] video Full화면 전환시  thumbnail이 있으면 보내도록 변경
This commit is contained in:
dongyoungKo
2025-03-20 16:31:51 +09:00
parent 91fd83976f
commit 92840d3f61
7 changed files with 26 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ import {
getMainCategoryDetail,
getMainYouMayLike,
} from "../../actions/mainActions";
import { popPanel } from "../../actions/panelActions";
import { popPanel, updatePanel } from "../../actions/panelActions";
import { finishVideoPreview } from "../../actions/playActions";
import {
clearProductDetail,
@@ -83,6 +83,7 @@ export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
(state) => state.common.appStatus.webOSVersion
);
const panels = useSelector((state) => state.panels.panels);
const [lgCatCd, setLgCatCd] = useState("");
const [isYouMayLikeOpened, setIsYouMayLikeOpened] = useState(false);
const [selectedIndex, setSelectedIndex] = useState(0);
@@ -205,11 +206,22 @@ export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
dispatch(finishVideoPreview());
dispatch(popPanel(panel_names.DETAIL_PANEL));
if (panels.length === 4 && panels[1]?.name === panel_names.PLAYER_PANEL) {
dispatch(
updatePanel({
name: panel_names.PLAYER_PANEL,
panelInfo: {
thumbnail: panelInfo.thumbnailUrl,
},
})
);
}
if (isCancelClick) {
ev.stopPropagation();
}
},
[dispatch]
[dispatch, panelInfo, panels]
);
const handleSMSonClose = useCallback(() => {