[251009] fix 불필요한 consolelog 주석 처리

디버깅용 console.log를 주석 처리해 코드 정리

🕐 커밋 시간: 2025. 10. 09. 20:30:27

📊 변경 통계:
  • 총 파일: 1개
  • 추가: +15줄
  • 삭제: -15줄

📝 수정된 파일:
  ~ com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx

🔧 주요 변경 내용:
  • 코드 정리 및 최적화
This commit is contained in:
2025-10-09 20:30:29 +09:00
parent 85b153dcc3
commit 0ea842e569

View File

@@ -1819,19 +1819,19 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
}, []);
const resetTimerV2 = useCallback((timeout) => {
console.log('[TabContainerV2] resetTimerV2 호출', timeout);
// console.log('[TabContainerV2] resetTimerV2 호출', timeout);
if (timerIdV2.current) {
console.log('[TabContainerV2] 기존 타이머 클리어');
// console.log('[TabContainerV2] 기존 타이머 클리어');
clearTimerV2();
}
if (initialEnterV2) {
console.log('[TabContainerV2] initialEnterV2 false로 변경');
// console.log('[TabContainerV2] initialEnterV2 false로 변경');
setInitialEnterV2(false);
}
timerIdV2.current = setTimeout(() => {
console.log('[TabContainerV2] 타이머 실행 - belowContentsVisible false로 변경');
// console.log('[TabContainerV2] 타이머 실행 - belowContentsVisible false로 변경');
setBelowContentsVisible(false);
}, timeout);
}, []);
@@ -1882,37 +1882,37 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
// TabContainerV2 자동 닫기
useEffect(() => {
console.log('[TabContainerV2] useEffect 시작', {
showBelowContents,
videoVerticalVisible,
initialEnterV2,
});
// console.log('[TabContainerV2] useEffect 시작', {
// showBelowContents,
// videoVerticalVisible,
// initialEnterV2,
// });
const node = document.querySelector(`[data-spotlight-id=${TAB_CONTAINER_V2_SPOTLIGHT_ID}]`);
console.log('[TabContainerV2] DOM node:', node);
// console.log('[TabContainerV2] DOM node:', node);
if (!showBelowContents || !node || videoVerticalVisible) {
console.log('[TabContainerV2] early return');
// console.log('[TabContainerV2] early return');
return;
}
// NOTE 첫 진입 시에는 30초 후 탭이 닫히도록 설정
if (initialEnterV2) {
console.log('[TabContainerV2] 첫 진입 - 타이머 시작', INITIAL_TIMEOUT);
// console.log('[TabContainerV2] 첫 진입 - 타이머 시작', INITIAL_TIMEOUT);
resetTimerV2(INITIAL_TIMEOUT);
}
const handleEvent = (e) => {
console.log('[TabContainerV2] 이벤트 발생:', e.type);
// console.log('[TabContainerV2] 이벤트 발생:', e.type);
resetTimerV2(REGULAR_TIMEOUT);
};
TARGET_EVENTS.forEach((event) => {
console.log('[TabContainerV2] 이벤트 리스너 등록:', event);
// console.log('[TabContainerV2] 이벤트 리스너 등록:', event);
node.addEventListener(event, handleEvent);
});
return () => {
console.log('[TabContainerV2] cleanup');
// console.log('[TabContainerV2] cleanup');
TARGET_EVENTS.forEach((event) => node.removeEventListener(event, handleEvent));
if (timerIdV2.current) {