-
Notifications
You must be signed in to change notification settings - Fork 943
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
Date filter #949
Date filter #949
Conversation
23edb2e
to
2823fe8
Compare
2823fe8
to
67b512d
Compare
67b512d
to
adfa849
Compare
6c5be04
to
7213299
Compare
weekDayFormat: 'dd', | ||
phrases: { | ||
closeDatePicker: null, // Handled inside component | ||
clearDate: null, // Handled inside component |
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.
Maybe these phrases could be left out.
phrases: {}, // Add overwrites to default phrases used by react-dates
Reorder commits so that "Add help functions for ISO8601 date format" is included before "Add DateRangeFilter to desktop and mobile versions". (i.e. functions are included before they are used) |
7213299
to
d6331cb
Compare
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.
Not much to comment, looks good. How do the FilterPlain
and FilterPopup
play out with the current filter components we have: SelectSingleFilter
, SelectMultipleFilter
, SelectSingleFilterPlain
and SelectMultipleFilterPlain
?
@@ -140,3 +140,11 @@ export const formatDate = (intl, todayString, d) => { | |||
|
|||
return `${formattedDate}, ${formattedTime}`; | |||
}; | |||
|
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.
A comment for these ISO8601 functions would be nice. Like the ones on other helper functions in this file.
d6331cb
to
fda3f20
Compare
e907969
to
ac7346d
Compare
4bb186a
to
5b37885
Compare
41f2a09
to
a62b900
Compare
…ain and SelectSingleFilterPopup
Note:
This PR adds date filter and refactors other filters to be more consistent: there are now plain and popup versions of select-single and select-multiple filters too.
BookingDateRangeFilter on mobile version
BookingDateRangeFilter on desktop version