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());