Skip to content
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

Range on one datepicker for #584 #2204

Merged

Conversation

3bOONAL
Copy link
Contributor

@3bOONAL 3bOONAL commented Jun 29, 2020

Tried to implement one datepicker for range. Thanks to the guys from #584 discussion, their examples are the base for this PR. I hope this will help.

3bOONAL added 3 commits June 30, 2020 00:47
* transfer prop for it through parents components to children
* add logic for getting styles for range
@codecov
Copy link

codecov bot commented Jun 29, 2020

Codecov Report

Merging #2204 into master will increase coverage by 0.12%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2204      +/-   ##
==========================================
+ Coverage   91.98%   92.10%   +0.12%     
==========================================
  Files          20       20              
  Lines        1223     1242      +19     
  Branches      312      324      +12     
==========================================
+ Hits         1125     1144      +19     
  Misses         40       40              
  Partials       58       58              
Impacted Files Coverage Δ
src/calendar.jsx 93.67% <ø> (ø)
src/month.jsx 94.04% <ø> (ø)
src/week.jsx 86.95% <ø> (ø)
src/day.jsx 92.78% <100.00%> (+0.31%) ⬆️
src/index.jsx 87.45% <100.00%> (+0.73%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3e59bb0...d490539. Read the comment docs.

@3bOONAL 3bOONAL closed this Jun 29, 2020
@3bOONAL 3bOONAL deleted the feature/range_one_datepicker branch June 29, 2020 22:36
* remove extra code
* add tests
* add condition check for set same date when selectsRange
@3bOONAL 3bOONAL reopened this Jun 29, 2020
@martijnrusschen
Copy link
Member

Thanks for adding support for this!

@martijnrusschen martijnrusschen merged commit afd8214 into Hacker0x01:master Jul 9, 2020
p-rogas pushed a commit to p-rogas/react-datepicker that referenced this pull request Mar 22, 2023
* add logic for getting date range
* transfer prop for it through parents components to children
* add logic for getting styles for range

* add tests for selectsRange prop

* add example of using selectsRange prop to docs-site

* refactoring
* remove extra code
* add tests
* add condition check for set same date when selectsRange

* refactore and correct test
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