diff --git a/com.twin.app.shoptime/src/views/MainView/MainView.jsx b/com.twin.app.shoptime/src/views/MainView/MainView.jsx index 451d5832..1fa9cc04 100644 --- a/com.twin.app.shoptime/src/views/MainView/MainView.jsx +++ b/com.twin.app.shoptime/src/views/MainView/MainView.jsx @@ -157,10 +157,10 @@ export default function MainView({ className, initService }) { deviceId, } = useSelector((state) => state.common.appStatus); const skipEndOfServicePopup = useSelector( - (state) => state.localSettings.skipEndOfServicePopup, + (state) => state.localSettings.skipEndOfServicePopup ); const isInternetConnected = useSelector( - (state) => state.common.appStatus.isInternetConnected, + (state) => state.common.appStatus.isInternetConnected ); const deviceCountryCode = httpHeader?.["X-Device-Country"] || ""; @@ -316,8 +316,8 @@ export default function MainView({ className, initService }) { mandatoryIncludeYn: "Y", termsList: ["MST00401", "MST00402"], }, - reload, - ), + reload + ) ); } }, [dispatch, activePopup]); @@ -369,12 +369,15 @@ export default function MainView({ className, initService }) { dispatch( changeAppStatus({ cursorVisible: ev.visibility || ev.detail.visibility, - }), + }) ); }, - [dispatch], + [dispatch] ); + const openPdfPopup = (pdfUrl) => { + window.open(pdfUrl, "_blank", "width=800,height=600"); + }; useEffect(() => { document.addEventListener("cursorStateChange", cursorStateChange, false); if (platform.platformName !== "webos") { @@ -384,7 +387,7 @@ export default function MainView({ className, initService }) { dispatch( changeAppStatus({ cursorVisible: window.cursorEvent && window.cursorEvent.visibility, - }), + }) ); } return () => { @@ -397,7 +400,7 @@ export default function MainView({ className, initService }) { const popupTimerRef = useRef(null); // 타이머 ID를 저장할 상태 변수 const { upComingAlertShow } = useSelector( - (state) => state.myPage.upComingData, + (state) => state.myPage.upComingData ); useEffect(() => { @@ -430,7 +433,7 @@ export default function MainView({ className, initService }) { patnrId: patnrId.toString(), showId, showNm, - }), + }) ); } }, [activePopup, alertItems, popupVisible]); @@ -472,7 +475,7 @@ export default function MainView({ className, initService }) { upComingAlertShow.alertShows?.length > 0 ) { const alertList = upComingAlertShow.alertShows.filter((show) => - isSameDateTime(show.strtDt), + isSameDateTime(show.strtDt) ); if (alertList.length > 0) { @@ -525,7 +528,7 @@ export default function MainView({ className, initService }) { patnrId: patnrId.toString(), showId, showNm, - }), + }) ); dispatch(resetPanels()); @@ -533,7 +536,7 @@ export default function MainView({ className, initService }) { pushPanel({ name: panel_names.FEATURED_BRANDS_PANEL, panelInfo: { from: "upcoming", patnrId: patnrId.toString() }, - }), + }) ); dispatch(setHidePopup()); setIntervalActive((prev) => !prev); @@ -582,7 +585,7 @@ export default function MainView({ className, initService }) { patnrId: patnrId.toString(), showId, showNm, - }), + }) ); setIntervalActive((prev) => !prev); @@ -650,7 +653,7 @@ export default function MainView({ className, initService }) { "handleErrorPopupClose 호출됨! activePopup:", activePopup, "popupData:", - popupData, + popupData ); if (popupData?.shouldPopPanel) { dispatch(popPanel()); @@ -690,7 +693,7 @@ export default function MainView({ className, initService }) { loadingComplete && (
@@ -743,7 +746,7 @@ export default function MainView({ className, initService }) { popupData.errorCode, popupData.errorMsg, popupData.retDetailCode, - popupData.returnBindStrings, + popupData.returnBindStrings )}

{" "} @@ -829,6 +832,24 @@ export default function MainView({ className, initService }) { onClick={handleAgree} /> )} */} +
); }