diff --git a/src/app/[groupId]/tasklist/_components/task-list-date-picker.tsx b/src/app/[groupId]/tasklist/_components/task-list-date-picker.tsx index be903c1e..d8d43907 100644 --- a/src/app/[groupId]/tasklist/_components/task-list-date-picker.tsx +++ b/src/app/[groupId]/tasklist/_components/task-list-date-picker.tsx @@ -21,12 +21,14 @@ import Skeleton from "react-loading-skeleton"; interface TaskListDatePickerProps { groupId: number; taskListId: number; + selectedDate: Date | null; setSelectedDate: Dispatch>; } const TaskListDatePicker = ({ groupId, taskListId, + selectedDate, setSelectedDate, }: TaskListDatePickerProps) => { const [currentSunday, setCurrentSunday] = useState(null); @@ -97,8 +99,8 @@ const TaskListDatePicker = ({

- {currentSunday ? ( - `${currentSunday.getFullYear()}년 ${currentSunday.getMonth() + 1}월` + {selectedDate ? ( + `${selectedDate.getFullYear()}년 ${selectedDate.getMonth() + 1}월` ) : ( )} diff --git a/src/app/[groupId]/tasklist/_components/task-list.tsx b/src/app/[groupId]/tasklist/_components/task-list.tsx index 1fd1ada5..0b84dee3 100644 --- a/src/app/[groupId]/tasklist/_components/task-list.tsx +++ b/src/app/[groupId]/tasklist/_components/task-list.tsx @@ -63,6 +63,7 @@ const TaskList = () => {