Skip to content

Commit

Permalink
feat: add optional to eventPeriods
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaeyeonAhn committed Nov 17, 2024
1 parent e702abc commit f366a8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web/src/common/components/Calendar/Calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ interface EventPeriod {

interface CalendarProps extends CalendarSizeProps {
existDates: Date[];
eventPeriods: EventPeriod[];
eventPeriods?: EventPeriod[];
selectedDates: Date[];
onDateClick?: (date: Date) => void;
}
Expand Down Expand Up @@ -53,7 +53,7 @@ const WeekWrapper = styled.div`
const Calendar: React.FC<CalendarProps> = ({
size = "md",
existDates,
eventPeriods,
eventPeriods = [],
selectedDates,
onDateClick = () => {},
}) => {
Expand Down

0 comments on commit f366a8e

Please sign in to comment.