Skip to content
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

Merged
merged 4 commits into from
Dec 3, 2018

Conversation

Imundy
Copy link
Contributor

@Imundy Imundy commented Nov 28, 2018

No description provided.

@Imundy Imundy added the enhancement New feature or request label Nov 28, 2018
setSelectedDate: PropTypes.func.isRequired,
/** specifies that the component should function as a date range picker */
asDateRangePicker: PropTypes.bool,
Copy link
Contributor Author

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).

@Imundy
Copy link
Contributor Author

Imundy commented Nov 29, 2018

Updated this with the date period picker as well.


const DATE_FORMAT_STRING = 'M/d/yyyy';

export class DatePeriodPicker extends PureComponent {
Copy link
Contributor

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 */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: daate

Copy link
Contributor

@dustinsoftware dustinsoftware left a 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

@Imundy
Copy link
Contributor Author

Imundy commented Nov 29, 2018

👍 Sounds good, once the beta packages are out I'll try to integrate it back into giving.

@dustinsoftware dustinsoftware merged commit 3a405a4 into Faithlife:master Dec 3, 2018
@dustinsoftware dustinsoftware mentioned this pull request Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

2 participants