Skip to content
Snippets Groups Projects
Unverified Commit 185de16b authored by Keven Max's avatar Keven Max Committed by Jordan Harband
Browse files

[Docs] examples: `DateRangePickerWrapper`/`SingleDatePickerWrapper`: Add open...

[Docs] examples: `DateRangePickerWrapper`/`SingleDatePickerWrapper`: Add open direction as default props
parent 42e59967
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,7 @@ import {
HORIZONTAL_ORIENTATION,
ANCHOR_LEFT,
NAV_POSITION_TOP,
OPEN_DOWN,
} from '../src/constants';
import isInclusivelyAfterDay from '../src/utils/isInclusivelyAfterDay';
......@@ -70,6 +71,7 @@ const defaultProps = {
keepOpenOnDateSelect: false,
reopenPickerOnClearDates: false,
isRTL: false,
openDirection: OPEN_DOWN,
// navigation related props
navPosition: NAV_POSITION_TOP,
......
......@@ -8,7 +8,7 @@ import SingleDatePicker from '../src/components/SingleDatePicker';
import { SingleDatePickerPhrases } from '../src/defaultPhrases';
import SingleDatePickerShape from '../src/shapes/SingleDatePickerShape';
import { HORIZONTAL_ORIENTATION, ANCHOR_LEFT } from '../src/constants';
import { HORIZONTAL_ORIENTATION, ANCHOR_LEFT, OPEN_DOWN } from '../src/constants';
import isInclusivelyAfterDay from '../src/utils/isInclusivelyAfterDay';
const propTypes = {
......@@ -56,6 +56,7 @@ const defaultProps = {
keepOpenOnDateSelect: false,
reopenPickerOnClearDate: false,
isRTL: false,
openDirection: OPEN_DOWN,
// navigation related props
navPrev: null,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment