[국가코드체크] 수정
This commit is contained in:
@@ -116,21 +116,16 @@ export default function MainView({ className }) {
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
}, [dispatch]);
|
||||
|
||||
console.log(
|
||||
"Config.ACTIVE_POPUP.changeCountyPopup",
|
||||
Config.ACTIVE_POPUP.changeCountyPopup
|
||||
);
|
||||
|
||||
const currentTabLayoutPanelInfo = useMemo(() => {
|
||||
return panels[panels.length - 1]?.panelInfo;
|
||||
}, [panels]);
|
||||
|
||||
const renderTopPanel = useCallback(() => {
|
||||
// 602 지원하지 않는 국가
|
||||
// if (Config && Config.ACTIVE_POPUP.unSupportedCountryPopup) {
|
||||
// return;
|
||||
// }
|
||||
|
||||
// // 603 국가 변경
|
||||
// if (Config && Config.ACTIVE_POPUP.changeCountyPopup) {
|
||||
// return;
|
||||
// }
|
||||
|
||||
if (panels && panels.length > 0) {
|
||||
let renderringPanels = [];
|
||||
if (
|
||||
@@ -146,7 +141,7 @@ export default function MainView({ className }) {
|
||||
{isHomeOnTop && <HomePanel isOnTop={isHomeOnTop} />}
|
||||
{renderringPanels.map((panel, index) => {
|
||||
const Component = panelMap[panel.name];
|
||||
//render last two panels if there's videoplayer
|
||||
// render last two panels if there's videoplayer
|
||||
let isPanelOnTop = false;
|
||||
//preview video play case : two panels can be on top (normal + previewVideo)
|
||||
{
|
||||
@@ -183,8 +178,13 @@ export default function MainView({ className }) {
|
||||
</>
|
||||
);
|
||||
} else if (isHomeOnTop) {
|
||||
return <HomePanel isOnTop={isHomeOnTop} />;
|
||||
return activePopup === Config.ACTIVE_POPUP.changeCountyPopup ||
|
||||
activePopup === Config.ACTIVE_POPUP.unSupportedCountryPopup ? null : (
|
||||
<HomePanel isOnTop={isHomeOnTop} />
|
||||
);
|
||||
// return <HomePanel isOnTop={isHomeOnTop} />;
|
||||
}
|
||||
|
||||
return null;
|
||||
}, [panels, tabActivated, isHomeOnTop]);
|
||||
|
||||
@@ -216,25 +216,16 @@ export default function MainView({ className }) {
|
||||
|
||||
// 603 국가 변경
|
||||
if (activePopup === Config.ACTIVE_POPUP.changeCountyPopup) {
|
||||
// setChangeCountry(false);
|
||||
// dispatch(
|
||||
// pushPanel({
|
||||
// name: panel_names.INTRO_PANEL,
|
||||
// })
|
||||
// );
|
||||
// dispatch(setHidePopup());
|
||||
// dispatch(
|
||||
// changeAppStatus({ showLoadingPanel: { show: true, type: "launching" } })
|
||||
// );
|
||||
dispatch(setHidePopup());
|
||||
// dispatch(
|
||||
// getHomeTerms({
|
||||
// mbrNo: appStatus.loginUserData.userNumber,
|
||||
// trmsTpCdList: "MST00401, MST00402",
|
||||
// })
|
||||
// );
|
||||
}
|
||||
|
||||
// setTimeout(() => Spotlight.focus());
|
||||
window.location.reload();
|
||||
}
|
||||
}, [dispatch, activePopup]);
|
||||
|
||||
const handlePopupClose = useCallback(() => {
|
||||
|
||||
Reference in New Issue
Block a user