Skip to content

Commit

Permalink
#29 fix: 타입 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
leejin-rho committed Jul 2, 2024
1 parent f196652 commit e3446e7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion components/calendar/CalendarModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const CalendarModal = ({
toggleModal,
}: {
programIdx: number;
toggleModal: () => {};
toggleModal: () => void;
}) => {
const { data }: { data: GetProgramDetailBody } =
useGetProgramDetail(programIdx);
Expand Down
1 change: 0 additions & 1 deletion components/calendar/InfoCalendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export default function InfoCalendar({
const customTileContent = ({ date, view }: { date: Date; view: string }) => {
if (Array.isArray(data) && view === "month") {
let filteredData = data.filter((dayData: MonthCalendarProps) => {
console.log(filterTag);
return dayData.category === filterTag || dayData.location === filterTag;
});

Expand Down
1 change: 0 additions & 1 deletion pages/calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const CalendarPage: NextPage = () => {
const [selected, setSelected] = useState("");

const handleSelect = (e) => {
console.log(selected);
setSelected(e.target.value);
};

Expand Down

0 comments on commit e3446e7

Please sign in to comment.