diff --git a/frontend/src/components/pc/public/schedule/Calendar.jsx b/frontend/src/components/pc/public/schedule/Calendar.jsx index 8ce8c5d..1eac069 100644 --- a/frontend/src/components/pc/public/schedule/Calendar.jsx +++ b/frontend/src/components/pc/public/schedule/Calendar.jsx @@ -1,6 +1,6 @@ import { useState, useRef, useEffect, useMemo } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; -import { ChevronLeft, ChevronRight, ChevronDown } from 'lucide-react'; +import { ChevronLeft, ChevronRight, ChevronDown, CalendarDays } from 'lucide-react'; import { getTodayKST, dayjs } from '@/utils'; import { MIN_YEAR, WEEKDAYS, MONTH_NAMES } from '@/constants'; @@ -93,6 +93,17 @@ function Calendar({ } }; + // 오늘 날짜로 이동 + const goToToday = () => { + const today = new Date(); + const isFuture = + today.getFullYear() > year || + (today.getFullYear() === year && today.getMonth() > month); + setSlideDirection(isFuture ? 1 : -1); + onDateChange(today); + onSelectDate(getTodayKST()); + }; + const selectYear = (newYear) => { onDateChange(new Date(newYear, month, 1)); }; @@ -133,7 +144,7 @@ function Calendar({ transition={{ duration: 0.2 }} className={disabled ? 'pointer-events-none' : ''} > -
+
{/* 헤더 */}
diff --git a/frontend/src/components/pc/public/schedule/CategoryFilter.jsx b/frontend/src/components/pc/public/schedule/CategoryFilter.jsx index 0119ff3..c934c54 100644 --- a/frontend/src/components/pc/public/schedule/CategoryFilter.jsx +++ b/frontend/src/components/pc/public/schedule/CategoryFilter.jsx @@ -39,10 +39,10 @@ function CategoryFilter({ -

카테고리

-
+

카테고리

+
{/* 전체 */}