clauderic/react-infinite-calendar

Disable Specific Dates

Opened this issue · 0 comments

Hi,

I read the following tutorial
http://clauderic.github.io/react-infinite-calendar/#/basic-settings/disable-specific-dates?_k=dkmu7d

The code shows in this tutorial has some errors. It should be as followed:

// Example: Disable a range of dates

<InfiniteCalendar
   disabledDates={[
     new Date(2017, 11, 4),
     new Date(2017, 11, 9),
     new Date(2017, 11, 8),
     new Date(2017, 11, 19),
     new Date(2017, 11, 20),
     new Date(2017, 11, 21),
     new Date(2017, 11, 16)
   ]}
/>

Thank you,
rihena

P/S: by the way, I find your infinite calendar AWESOME!