hypeserver / react-date-range

A React component for choosing dates and date ranges.
MIT License
2.57k stars 658 forks source link

weekStartsOn propagation #523

Open gbili opened 2 years ago

gbili commented 2 years ago

Types of changes

What types of changes does your code introduce?

Put an x in the boxes that apply

Description

Describe your pr here.

Pass the weekStartsOn prop to DefinedRange. Fixes the inconsistency between the Calendar and the DefinedRange. Also changed the order of StaticRanges to make them appear chronologically. Last Month, Last Week, Yesterday, Today, This Week, This Month. If this poses a problem I can fix it, but I needed that order, so I made it the default (my bad not to separate commits).

Related Issue: #xxx