[국가코드 체크] 로직 변경
This commit is contained in:
@@ -17,7 +17,10 @@ import {
|
||||
setHidePopup,
|
||||
setShowPopup,
|
||||
} from "../../actions/commonActions";
|
||||
import { getMyUpcomingAlertShow } from "../../actions/myPageActions";
|
||||
import {
|
||||
getMyUpcomingAlertShow,
|
||||
setMyTermsWithdraw,
|
||||
} from "../../actions/myPageActions";
|
||||
import { pushPanel, resetPanels } from "../../actions/panelActions";
|
||||
import Loader from "../../components/Loader/Loader";
|
||||
import { convertUtcToLocal } from "../../components/MediaPlayer/util";
|
||||
@@ -122,14 +125,14 @@ export default function MainView({ className }) {
|
||||
|
||||
const renderTopPanel = useCallback(() => {
|
||||
// 602 지원하지 않는 국가
|
||||
// if (Config && Config.ACTIVE_POPUP.unSupportedCountryPopup) {
|
||||
// return;
|
||||
// }
|
||||
if (Config && Config.ACTIVE_POPUP.unSupportedCountryPopup) {
|
||||
return;
|
||||
}
|
||||
|
||||
// 603 국가 변경
|
||||
// if (Config && Config.ACTIVE_POPUP.changeCountyPopup) {
|
||||
// return;
|
||||
// }
|
||||
if (Config && Config.ACTIVE_POPUP.changeCountyPopup) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (panels && panels.length > 0) {
|
||||
let renderringPanels = [];
|
||||
@@ -217,9 +220,15 @@ export default function MainView({ className }) {
|
||||
// 603 국가 변경
|
||||
if (activePopup === Config.ACTIVE_POPUP.changeCountyPopup) {
|
||||
// setChangeCountry(false);
|
||||
// dispatch(
|
||||
// pushPanel({
|
||||
// name: panel_names.INTRO_PANEL,
|
||||
// })
|
||||
// );
|
||||
dispatch(
|
||||
pushPanel({
|
||||
name: panel_names.INTRO_PANEL,
|
||||
setMyTermsWithdraw({
|
||||
mandatoryIncludeYn: "Y",
|
||||
termsList: ["MST00401", "MST00402"],
|
||||
})
|
||||
);
|
||||
}
|
||||
@@ -528,8 +537,10 @@ export default function MainView({ className }) {
|
||||
/>
|
||||
)}
|
||||
|
||||
{(activePopup === Config.ACTIVE_POPUP.unSupportedCountryPopup ||
|
||||
activePopup === Config.ACTIVE_POPUP.changeCountyPopup) && (
|
||||
{((loadingComplete &&
|
||||
activePopup === Config.ACTIVE_POPUP.unSupportedCountryPopup) ||
|
||||
(loadingComplete &&
|
||||
activePopup === Config.ACTIVE_POPUP.changeCountyPopup)) && (
|
||||
<TPopUp
|
||||
button1Text={
|
||||
activePopup !== Config.ACTIVE_POPUP.unSupportedCountryPopup
|
||||
|
||||
Reference in New Issue
Block a user