-
-
Notifications
You must be signed in to change notification settings - Fork 734
New issue
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
Merge object passed to localeUtils
with Utils
#46
Comments
I should extract from |
Starting from v1.1, a way for solving this issue is to extends the default localeUtils, e.g.: import { localeUtils } from "react-day-picker/utils";
function formatMonthTitle() {
return "Custom Month Title"
}
<DayPicker localeUtils={{ ...LocaleUtils, formatMonthTitle }} /> |
FWYI, (since you pointed to this example in the release notes), I think your example is actually the opposite of what you meant. I think you want... import { localeUtils } from "react-day-picker/utils";
function formatMonthTitle() {
return "Custom Month Title"
}
<DayPicker localeUtils={{ ...LocaleUtils, formatMonthTitle }} /> (The custom |
Thanks! I fixed the comment 👍 |
No description provided.
The text was updated successfully, but these errors were encountered: