Skip to content

Commit

Permalink
(#58) 스케줄 캘린더 onRender 시 renderDates return 기능 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
JinJu committed Dec 13, 2023
1 parent f85ece6 commit 9d01b55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const Default = () => {
}, [selectedDate]);

return (
<div className = {"w-screen h-[1000px]"}>
<div className = {"w-screen"}>
<ScheduleCalendar
onRender = {getCalendarDates}
defaultQuantity = {25}
Expand Down Expand Up @@ -57,7 +57,7 @@ export const Default = () => {
},
"2023-12-06": {
quantity: 10,
markedDates: [ undefined, "견학" ],
markedDates: [ undefined, "견학", "견학", "견학" ],
},
"2023-12-07": {
quantity: 10,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const CalendarDayComponent = ({
{ calendarDates.map((calendarWeekDates: CalendarDateDto[], index) => (
<div
key = {index}
className = {"grid grid-cols-7 min-w-full w-full flex-1"}
className = {"grid grid-cols-7 h-44 overflow-hidden"}
>
{calendarWeekDates.map((calendarDate: CalendarDateDto, index: number) => {
const currentDate: string = calendarDate.dayjs.format("YYYY-MM-DD");
Expand Down

0 comments on commit 9d01b55

Please sign in to comment.