-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add date range picker options #91
Conversation
335f29a
to
744b846
Compare
setSelectedDate: PropTypes.func.isRequired, | ||
/** specifies that the component should function as a date range picker */ | ||
asDateRangePicker: PropTypes.bool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dustinsoftware here are the API changes I mentioned. It should behave the same if the new props are left out (so non-breaking).
Updated this with the date period picker as well. |
a47a251
to
ccf4d27
Compare
|
||
const DATE_FORMAT_STRING = 'M/d/yyyy'; | ||
|
||
export class DatePeriodPicker extends PureComponent { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing a jsdoc comment describing this component and its functionality
start: PropTypes.instanceOf(Date), | ||
end: PropTypes.instanceOf(Date), | ||
}), | ||
/** Returns a daate when selected. If asDateRangePicker is true, it will return a date range object matching the selectedDateRange prop shape */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: daate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine, I'll merge this after the next beta is promoted
👍 Sounds good, once the beta packages are out I'll try to integrate it back into giving. |
No description provided.