Added type for firstDayOfWeek prop (#20667)

This commit is contained in:
Karam Daddy
2017-10-23 13:19:45 -07:00
committed by Sheetal Nandi
parent 62d716b98c
commit 37748ebb29
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -57,6 +57,7 @@ declare namespace ReactDates {
withPortal?: boolean,
withFullScreenPortal?: boolean,
initialVisibleMonth?: () => momentPropTypes.momentObj,
firstDayOfWeek? : 0 | 1 | 2 | 3 | 4 | 5 | 6,
numberOfMonths?: number,
keepOpenOnDateSelect?: boolean,
reopenPickerOnClearDates?: boolean,
@@ -144,6 +145,7 @@ declare namespace ReactDates {
withPortal?: boolean,
withFullScreenPortal?: boolean,
initialVisibleMonth?: () => momentPropTypes.momentObj,
firstDayOfWeek? : 0 | 1 | 2 | 3 | 4 | 5 | 6,
numberOfMonths?: number,
keepOpenOnDateSelect?: boolean,
reopenPickerOnClearDates?: boolean,
+2
View File
@@ -57,6 +57,7 @@ class SingleDatePickerFullTest extends React.Component {
onFocusChange={arg => {}}
onNextMonthClick={e => {}}
onPrevMonthClick={e => {}}
firstDayOfWeek={0}
numberOfMonths={2}
orientation="horizontal"
monthFormat="MM"
@@ -109,6 +110,7 @@ class DateRangePickerFullTest extends React.Component {
onFocusChange={arg => {}}
onNextMonthClick={e => {}}
onPrevMonthClick={e => {}}
firstDayOfWeek={0}
numberOfMonths={2}
orientation="horizontal"
monthFormat="MM"