Skip to content

Conversation

balajis-qb
Copy link
Contributor

@balajis-qb balajis-qb commented Jun 10, 2025

Description

Linked issue: #5644

As mentioned in the ticket, I added a support for visibleYearsRange in the renderCustomHeader of the YearPicker. This prop will be only available when the showYearPicker prop is set and it provides the startYear and the endYear.

Changes

  • Updated ReactDatePickerCustomHeaderProps with the optional visibleYearsRange prop
  • Include visibleYearsRange when calling renderCustomHeader for the YearPicker View
  • Testcases to validate the change

image

Contribution checklist

  • I have followed the contributing guidelines.
  • I have added sufficient test coverage for my changes.
  • I have formatted my code with Prettier and checked for linting issues with ESLint for code readability.

@codecov
Copy link

codecov bot commented Jun 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.15%. Comparing base (6e0b763) to head (b104d69).
Report is 48 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@balajis-qb balajis-qb force-pushed the issue-5644/enhancement/renderCustomHeader branch from 7e02ff7 to b104d69 Compare June 10, 2025 08:56
@martijnrusschen martijnrusschen merged commit c48a086 into Hacker0x01:main Jun 23, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants