[SHOPTIME-3905] Trending Now / full 영상 / 상품 detail 진입 후 영상 재생 / 이전 버튼 클릭 시 화면 이슈
[수정사항] video Full화면 전환시 thumbnail이 있으면 보내도록 변경
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user