Move the constants file out to the top-level
This should allow consumers to do `import { START_DATE, END_DATE } from 'react-dates/constants';` which is ideal
Showing
- constants.js 10 additions, 0 deletionsconstants.js
- index.js 0 additions, 4 deletionsindex.js
- src/components/CalendarMonth.jsx 1 addition, 1 deletionsrc/components/CalendarMonth.jsx
- src/components/CalendarMonthGrid.jsx 1 addition, 1 deletionsrc/components/CalendarMonthGrid.jsx
- src/components/DateRangePicker.jsx 1 addition, 1 deletionsrc/components/DateRangePicker.jsx
- src/components/DateRangePickerInput.jsx 1 addition, 1 deletionsrc/components/DateRangePickerInput.jsx
- src/components/DayPicker.jsx 1 addition, 1 deletionsrc/components/DayPicker.jsx
- src/components/SingleDatePicker.jsx 1 addition, 1 deletionsrc/components/SingleDatePicker.jsx
- src/constants.js 0 additions, 8 deletionssrc/constants.js
- src/shapes/FocusedInputShape.js 1 addition, 1 deletionsrc/shapes/FocusedInputShape.js
- src/shapes/OrientationShape.js 1 addition, 1 deletionsrc/shapes/OrientationShape.js
- src/utils/toISODateString.js 1 addition, 1 deletionsrc/utils/toISODateString.js
- src/utils/toLocalizedDateString.js 1 addition, 1 deletionsrc/utils/toLocalizedDateString.js
- src/utils/toMomentObject.js 1 addition, 1 deletionsrc/utils/toMomentObject.js
- stories/DateRangePicker.js 1 addition, 1 deletionstories/DateRangePicker.js
- stories/DayPicker.js 1 addition, 1 deletionstories/DayPicker.js
- stories/SingleDatePicker.js 1 addition, 1 deletionstories/SingleDatePicker.js
- test/components/CalendarMonthGrid_spec.jsx 1 addition, 1 deletiontest/components/CalendarMonthGrid_spec.jsx
- test/components/CalendarMonth_spec.jsx 1 addition, 1 deletiontest/components/CalendarMonth_spec.jsx
- test/components/DateRangePicker_spec.jsx 1 addition, 1 deletiontest/components/DateRangePicker_spec.jsx
Loading
Please register or sign in to comment