v3.0.0
New Feataures
- add support to style calendar cells based on cell date #610
Breaking changes ⚠️
- Deleted deprecated interfaces. Instead, use
ICalendarEventBase & T
ICalendarEvent<T>
DayJSConvertedEvent
Event
evenCellBg
andoddCellBg
is deleted in favor ofcalendarCellStyle
function. To migrate:
Before
<Calendar theme={{ evenCellBg: '#aaa', oddCellBg: '#bbb' }} />
After
<Calendar
calendarCellStyle={(date, index) => ({
backgroundColor: index % 2 === 0 ? "#aaa" : "#bbb",
})}
/>
Full Changelog: v2.9.1...v3.0.0