[글로벌팝업]

- 현재 기존 팝업과 같은 노출구조로 되어있어 우선 false 처리
This commit is contained in:
junghoon86.park
2025-11-07 14:03:19 +09:00
parent 0c507d5818
commit 3c49242722

View File

@@ -4,12 +4,20 @@
* 기존 TPopUp과 완전히 호환 * 기존 TPopUp과 완전히 호환
*/ */
import React, { useMemo, useCallback } from 'react'; import React, {
import { useSelector, useDispatch } from 'react-redux'; useCallback,
import TPopUp from '../TPopUp/TPopUp'; useMemo,
import { getPopupConfig } from '../../constants/popupConfig'; } from 'react';
import {
useDispatch,
useSelector,
} from 'react-redux';
import { setHidePopup } from '../../actions/commonActions'; import { setHidePopup } from '../../actions/commonActions';
import { getPopupConfig } from '../../constants/popupConfig';
import usePrevious from '../../hooks/usePrevious'; import usePrevious from '../../hooks/usePrevious';
import TPopUp from '../TPopUp/TPopUp';
// 커스텀 훅: 팝업 상태 관리 // 커스텀 훅: 팝업 상태 관리
const useGlobalPopupState = () => { const useGlobalPopupState = () => {
@@ -135,7 +143,8 @@ const GlobalPopup = () => {
const baseProps = { const baseProps = {
kind: currentConfig.kind, kind: currentConfig.kind,
open: popupVisible, // open: popupVisible, //우선 주석처리 추후 조건에 맞게 변경처리 예정.
open: false,
onClose: handlers.handleClose, onClose: handlers.handleClose,
className: currentConfig.className className: currentConfig.className
}; };