✨ Add a support for visibleYearsRange in the renderCustomHeader of the YearPicker#5687
Merged
martijnrusschen merged 1 commit intoHacker0x01:mainfrom Jun 23, 2025
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5687 +/- ##
==========================================
+ Coverage 97.11% 97.15% +0.03%
==========================================
Files 30 30
Lines 3363 3369 +6
Branches 1404 1422 +18
==========================================
+ Hits 3266 3273 +7
+ Misses 97 94 -3
- Partials 0 2 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…f the YearPicker Closes Hacker0x01#5644
7e02ff7 to
b104d69
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Linked issue: #5644
As mentioned in the ticket, I added a support for
visibleYearsRangein therenderCustomHeaderof the YearPicker. This prop will be only available when theshowYearPickerprop is set and it provides thestartYearand theendYear.Changes
ReactDatePickerCustomHeaderPropswith the optionalvisibleYearsRangepropvisibleYearsRangewhen callingrenderCustomHeaderfor the YearPicker ViewContribution checklist