Skip to content

Commit

Permalink
Add example
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl committed Apr 20, 2017
1 parent f997d6b commit 461d377
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/src/examples/Restricted.js
Expand Up @@ -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 (
Expand All @@ -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());
Expand Down

0 comments on commit 461d377

Please sign in to comment.