We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i want to disable past days in calendar
here is my current approach
mapDays={({ date, isSameDate, today }) => { let isBooked = bookedDays.find((x) => isSameDate(date, x)); if ( date.year <= today.year && date.month.index <= today.month.index && date.day < today.day ) { return { disabled: true, style: { color: "#ccc" }, }; } }}
is there a more optimized way?
The text was updated successfully, but these errors were encountered:
Maybe minDate or maxDate can help.
Sorry, something went wrong.
No branches or pull requests
i want to disable past days in calendar
here is my current approach
is there a more optimized way?
The text was updated successfully, but these errors were encountered: