From 5db44d21077d277d49d89393d94be157758f9191 Mon Sep 17 00:00:00 2001 From: Maja Wichrowska Date: Wed, 19 Oct 2016 08:32:13 -0700 Subject: [PATCH] Remove deprecated `blockedDates`, `blockedByDefault`, `unblockedDates` props --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5a4e2d82ff..c46426d8bc 100644 --- a/README.md +++ b/README.md @@ -231,11 +231,9 @@ A boolean representing whether or not the date input is currently focused. These properties are the same as provided to the `` component. -To indicate which days are blocked from selection, you may either provide an array of moment objects to the `blockedDates` prop or you may set `blockedByDefault` to true and provide available days as an array of moment objects to the `unblockedDates` prop, depending on what makes sense for you. +To indicate which days are blocked from selection, you may provide a function to the `isDayBlocked` prop. As of v1.0.0, we allow blocked dates inside of ranges. ``` - blockedDates: PropTypes.arrayOf(momentPropTypes.momentObj) - blockedByDefault: PropTypes.bool - unblockedDates: PropTypes.arrayOf(momentPropTypes.momentObj) + isDayBlocked: PropTypes.func ``` `isOutsideRange` indicates which days are out of selectable range.