From 8424c3422d8a3dc18d6c96f910ec75849f425d3d Mon Sep 17 00:00:00 2001 From: caadiq Date: Fri, 9 Jan 2026 22:47:32 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Schedule=20=ED=8E=98=EC=9D=B4=EC=A7=80?= =?UTF-8?q?=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95=20=EB=B0=8F=20?= =?UTF-8?q?=EB=85=84=EC=9B=94=20=EC=84=A0=ED=83=9D=20=EC=8A=A4=ED=83=80?= =?UTF-8?q?=EC=9D=BC=20=ED=86=B5=EC=9D=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Schedule.jsx: yearRange, monthNames 변수 누락 수정 - Schedule.jsx, AdminSchedule.jsx: 현재 년도/월 테두리 제거, 글씨색만 유지 - CustomDatePicker.jsx: 동일 스타일 적용 --- frontend/src/pages/pc/admin/AdminSchedule.jsx | 6 +++--- frontend/src/pages/pc/public/Schedule.jsx | 8 +++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/frontend/src/pages/pc/admin/AdminSchedule.jsx b/frontend/src/pages/pc/admin/AdminSchedule.jsx index 9d7cfa8..dc5c56b 100644 --- a/frontend/src/pages/pc/admin/AdminSchedule.jsx +++ b/frontend/src/pages/pc/admin/AdminSchedule.jsx @@ -794,7 +794,7 @@ function AdminSchedule() { year === y ? 'bg-primary text-white' : isCurrentYear(y) && year !== y - ? 'border border-primary text-primary hover:bg-primary/10' + ? 'text-primary font-medium hover:bg-primary/10' : 'hover:bg-gray-100 text-gray-700' }`} > @@ -814,7 +814,7 @@ function AdminSchedule() { month === i ? 'bg-primary text-white' : isCurrentMonth(i) && month !== i - ? 'border border-primary text-primary hover:bg-primary/10' + ? 'text-primary font-medium hover:bg-primary/10' : 'hover:bg-gray-100 text-gray-700' }`} > @@ -844,7 +844,7 @@ function AdminSchedule() { month === i ? 'bg-primary text-white' : isCurrentMonth(i) && month !== i - ? 'border border-primary text-primary hover:bg-primary/10' + ? 'text-primary font-medium hover:bg-primary/10' : 'hover:bg-gray-100 text-gray-700' }`} > diff --git a/frontend/src/pages/pc/public/Schedule.jsx b/frontend/src/pages/pc/public/Schedule.jsx index 9039fac..62e30bb 100644 --- a/frontend/src/pages/pc/public/Schedule.jsx +++ b/frontend/src/pages/pc/public/Schedule.jsx @@ -327,6 +327,8 @@ function Schedule() { // 연도 선택 범위 const [yearRangeStart, setYearRangeStart] = useState(currentYear - 1); + const yearRange = Array.from({ length: 12 }, (_, i) => yearRangeStart + i); + const monthNames = ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월']; const prevYearRange = () => setYearRangeStart(prev => prev - 3); const nextYearRange = () => setYearRangeStart(prev => prev + 3); @@ -455,7 +457,7 @@ function Schedule() { onClick={() => selectYear(y)} className={`py-2 text-sm rounded-lg transition-colors ${ year === y ? 'bg-primary text-white' : - isCurrentYear(y) && year !== y ? 'border border-primary text-primary hover:bg-primary/10' : + isCurrentYear(y) && year !== y ? 'text-primary font-medium hover:bg-primary/10' : 'hover:bg-gray-100 text-gray-700' }`} > @@ -471,7 +473,7 @@ function Schedule() { onClick={() => selectMonth(i)} className={`py-2 text-sm rounded-lg transition-colors ${ month === i ? 'bg-primary text-white' : - isCurrentMonth(i) && month !== i ? 'border border-primary text-primary hover:bg-primary/10' : + isCurrentMonth(i) && month !== i ? 'text-primary font-medium hover:bg-primary/10' : 'hover:bg-gray-100 text-gray-700' }`} > @@ -491,7 +493,7 @@ function Schedule() { onClick={() => selectMonth(i)} className={`py-2.5 text-sm rounded-lg transition-colors ${ month === i ? 'bg-primary text-white' : - isCurrentMonth(i) && month !== i ? 'border border-primary text-primary hover:bg-primary/10' : + isCurrentMonth(i) && month !== i ? 'text-primary font-medium hover:bg-primary/10' : 'hover:bg-gray-100 text-gray-700' }`} >