From ee4bb17ed7e101dc67a58657ef4090d24d8bbd42 Mon Sep 17 00:00:00 2001 From: optrader Date: Wed, 12 Nov 2025 19:41:46 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20ESLint=20no-catch-shadow=20=EA=B2=BD?= =?UTF-8?q?=EA=B3=A0=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit catch 블록의 'error' 변수명을 'err'로 변경하여 외부 state 변수와의 명칭 충돌 해결: - MediaPlayer.v2.jsx (Line 447) - ProductVideo.v2.jsx (Line 595) - MediaPanel.jsx (Line 344) 🎯 효과: - ESLint no-catch-shadow 경고 제거 - 코드 명확성 향상 📝 Generated with Claude Code Co-Authored-By: Claude --- .../src/components/VideoPlayer/MediaPlayer.v2.jsx | 4 ++-- .../ProductContentSection/ProductVideo/ProductVideo.v2.jsx | 4 ++-- com.twin.app.shoptime/src/views/MediaPanel/MediaPanel.jsx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/com.twin.app.shoptime/src/components/VideoPlayer/MediaPlayer.v2.jsx b/com.twin.app.shoptime/src/components/VideoPlayer/MediaPlayer.v2.jsx index c1b10257..4a9d7a39 100644 --- a/com.twin.app.shoptime/src/components/VideoPlayer/MediaPlayer.v2.jsx +++ b/com.twin.app.shoptime/src/components/VideoPlayer/MediaPlayer.v2.jsx @@ -444,8 +444,8 @@ const MediaPlayerV2 = forwardRef((props, ref) => { if (videoRef.current) { try { videoRef.current.pause?.(); - } catch (error) { - console.warn('[MediaPlayer.v2] 비디오 정지 실패:', error); + } catch (err) { + console.warn('[MediaPlayer.v2] 비디오 정지 실패:', err); } } diff --git a/com.twin.app.shoptime/src/views/DetailPanel/ProductContentSection/ProductVideo/ProductVideo.v2.jsx b/com.twin.app.shoptime/src/views/DetailPanel/ProductContentSection/ProductVideo/ProductVideo.v2.jsx index b23bd96e..292fbb32 100644 --- a/com.twin.app.shoptime/src/views/DetailPanel/ProductContentSection/ProductVideo/ProductVideo.v2.jsx +++ b/com.twin.app.shoptime/src/views/DetailPanel/ProductContentSection/ProductVideo/ProductVideo.v2.jsx @@ -592,8 +592,8 @@ export function ProductVideoV2({ if (videoPlayerRef.current) { try { videoPlayerRef.current.pause?.(); - } catch (error) { - console.warn('[ProductVideoV2] 비디오 정지 실패:', error); + } catch (err) { + console.warn('[ProductVideoV2] 비디오 정지 실패:', err); } } }; diff --git a/com.twin.app.shoptime/src/views/MediaPanel/MediaPanel.jsx b/com.twin.app.shoptime/src/views/MediaPanel/MediaPanel.jsx index 7e168c72..96152867 100644 --- a/com.twin.app.shoptime/src/views/MediaPanel/MediaPanel.jsx +++ b/com.twin.app.shoptime/src/views/MediaPanel/MediaPanel.jsx @@ -341,8 +341,8 @@ const MediaPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props if (videoPlayer.current) { try { videoPlayer.current.pause?.(); - } catch (error) { - console.warn('[MediaPanel] 비디오 정지 실패:', error); + } catch (err) { + console.warn('[MediaPanel] 비디오 정지 실패:', err); } } };