Skip to content

Commit 5ba3ba7

Browse files
authored
Update reservation.tsx
`day` is actually `date` and it should be optional, as mentioned in the comment
1 parent a9fa66b commit 5ba3ba7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/agenda/reservation-list/reservation.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ export interface ReservationProps {
1919
theme: Theme;
2020
/** specify your item comparison function for increased performance */
2121
rowHasChanged?: (a: any, b: any) => boolean;
22-
/** specify how each date should be rendered. day can be undefined if the item is not first in that day */
23-
renderDay?: (date: XDate, item?: DayReservations) => React.Component;
22+
/** specify how each date should be rendered. date can be undefined if the item is not first in that day */
23+
renderDay?: (date?: XDate, item?: DayReservations) => React.Component;
2424
/** specify how each item should be rendered in agenda */
2525
renderItem?: (reservation: any, isFirst: boolean) => React.Component;
2626
/** specify how empty date content with no items should be rendered */

0 commit comments

Comments
 (0)