React-day-picker: Property 'labelsFormatters' required in type 'DayPickerComponentProps' (v8)

Created on 18 Feb 2021  Â·  3Comments  Â·  Source: gpbl/react-day-picker

Describe the bug
When creating a wrapper for the DayPicker component, I get a TypeScript error stating that the property 'labelsFormatters' is required in type DayPickerComponentProps.

To Reproduce
The bug is reproduced on this CodeSandbox to reproduce the bug.

Expected behavior
The labelFormatters prop should not appear in DayPickerComponentProps. The DayPickerComponentProps should be almost the same as the DayPickerProps.ts src file.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Most helpful comment

@pmartiner thanks for trying the beta! Your report has been useful to discover some bugs. I've released a beta.7.

I wanted to provide some selection feature out of the box, so now DayPicker handle the selected state: https://react-day-picker-next.netlify.app/basics/selecting-days

Also, I've seen you were trying to create a range picker – I have been working to this feature integrated in DayPicker: https://react-day-picker-next.netlify.app/basics/selecting-days#selecting-a-range-of-days

Which features are you implementing? I am thinking to add a minDayCount and maxDayCount (so user cannot choose less than / more than that).

All 3 comments

FIXED in beta 5

@pmartiner thanks for trying the beta! Your report has been useful to discover some bugs. I've released a beta.7.

I wanted to provide some selection feature out of the box, so now DayPicker handle the selected state: https://react-day-picker-next.netlify.app/basics/selecting-days

Also, I've seen you were trying to create a range picker – I have been working to this feature integrated in DayPicker: https://react-day-picker-next.netlify.app/basics/selecting-days#selecting-a-range-of-days

Which features are you implementing? I am thinking to add a minDayCount and maxDayCount (so user cannot choose less than / more than that).

Thank you for reaching out @gpbl!
The minDayCount and maxDayCount would actually be really useful!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

trevordmiller picture trevordmiller  Â·  4Comments

samsch picture samsch  Â·  6Comments

laidinidis picture laidinidis  Â·  6Comments

LucasBassetti picture LucasBassetti  Â·  3Comments

thebuilder picture thebuilder  Â·  3Comments