diff --git a/src/components/IdolCard.jsx b/src/components/IdolCard.jsx index 2870a4a..ddc9e4b 100644 --- a/src/components/IdolCard.jsx +++ b/src/components/IdolCard.jsx @@ -9,6 +9,7 @@ const IdolCard = ({ isDisabled = false, sizeClass = 'w-[98px] h-[98px] tablet:w-[128px] tablet:h-[128px]', onClick, + isMyPage = true, }) => { const defaultImage = 'https://link24.kr/9iFIhh0'; @@ -22,7 +23,7 @@ const IdolCard = ({ } // 비활성화된 경우 클릭 방지 > {children} -
+
-
+
check )}
+ {isMyPage && ( +
+

{idol.name}

+

{idol.group || '그룹 없음'}

+
+ )}
); }; diff --git a/src/components/Modal.jsx b/src/components/Modal.jsx index 412f4b9..9d689df 100644 --- a/src/components/Modal.jsx +++ b/src/components/Modal.jsx @@ -4,7 +4,7 @@ import exitArrow from '@/assets/icons/exitArrow.svg'; import { useEffect, useState } from 'react'; function Modal({ title, onClose, children }) { - const [isMobile, setIsMobile] = useState(false); + const [isMobile, setIsMobile] = useState(window.innerWidth < 768); useEffect(() => { document.body.style.overflow = 'hidden'; // 모달창 열려 있으면 뒤의 배경 스크롤 막기 @@ -14,19 +14,14 @@ function Modal({ title, onClose, children }) { }, []); useEffect(() => { - const handleResize = () => { - setIsMobile(window.innerWidth < 768); - }; - + const handleResize = () => setIsMobile(window.innerWidth < 768); window.addEventListener('resize', handleResize); - handleResize(); return () => window.removeEventListener('resize', handleResize); }, []); if (title.includes('아이돌') && isMobile) { return ( - // z-[9999] : 모달창이 열렸을 때 리스트 페이지에 있는 아이돌 이미지 보더가 같이 보이는 현상 해결을 위해 작성 -
+
leftTopGradient +
- +
+ +

{rank}

@@ -40,6 +43,7 @@ const MonthlyChartItem = ({ isSelected={selectedIdol === idol.id} sizeClass="w-[70px] h-[70px]" isSelectable={false} + isMyPage={false} /> {selectedIdol === idol.id && (

diff --git a/src/pages/listPage/monthlyChart/MonthlyChartSection.jsx b/src/pages/listPage/monthlyChart/MonthlyChartSection.jsx index 7d03840..922a12c 100644 --- a/src/pages/listPage/monthlyChart/MonthlyChartSection.jsx +++ b/src/pages/listPage/monthlyChart/MonthlyChartSection.jsx @@ -33,7 +33,6 @@ const MonthlyChartSection = ({ const loadIdolData = async () => { setLoading(true); - console.log('loadIdolData:', gender, voteTrigger, cursor); const cursorValue = voteTrigger ? 0 : cursor; try { const response = await getLists(gender, cursorValue, pageSize);