From 461d3775029fe1b875b16c8bb47285e420d1e740 Mon Sep 17 00:00:00 2001 From: Giampaolo Bellavite Date: Thu, 20 Apr 2017 11:02:39 -0500 Subject: [PATCH] Add example --- examples/src/examples/Restricted.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/src/examples/Restricted.js b/examples/src/examples/Restricted.js index 1c434b8bff..8c5870ff8e 100644 --- a/examples/src/examples/Restricted.js +++ b/examples/src/examples/Restricted.js @@ -5,6 +5,7 @@ import '../../../src/style.css'; const start = new Date(2015, 3, 1, 0, 0); const end = new Date(2015, 10, 30, 23, 59); +const sundays = day => day.getDay() === 0; export default function Restricted() { return ( @@ -14,7 +15,7 @@ export default function Restricted() { initialMonth={start} fromMonth={start} toMonth={end} - disabledDays={[{ before: start }, { after: end }]} + disabledDays={[{ before: start }, { after: end }, sundays]} onDayClick={(day, { disabled }) => { if (!disabled) { console.log(day.toLocaleDateString());