update SingleDatePicker prop types

This commit is contained in:
TomBarta
2018-02-03 07:21:06 -07:00
parent b59d51ea8b
commit fe93d60e9a
2 changed files with 7 additions and 1 deletions
+5 -1
View File
@@ -146,6 +146,9 @@ declare namespace ReactDates {
customInputIcon?: string | JSX.Element,
noBorder?: boolean,
block?: boolean,
small?: boolean,
regular?: boolean,
keepFocusOnInput?: boolean,
// calendar presentation and interaction related props
renderMonth?: (day: momentPropTypes.momentObj) => (string | JSX.Element),
@@ -163,7 +166,8 @@ declare namespace ReactDates {
hideKeyboardShortcutsPanel?: boolean,
daySize?: number,
isRTL?: boolean,
verticalSpacing?: number,
verticalSpacing?: number,
verticalHeight?: number| null,
// navigation related props
navPrev?: string | JSX.Element,
+2
View File
@@ -65,6 +65,8 @@ class SingleDatePickerFullTest extends React.Component {
monthFormat="MM"
renderDayContents={day => day.toString()}
verticalSpacing={4}
keepFocusOnInput={true}
verticalHeight={5}
/>
}
}