Added date picker filter.
This commit is contained in:
1 parent
81789d6723
commit
60b17363e1
4 files changed
+71
-13
No files matched your search
+1
-1
@@ -89,7 +89,7 @@ export function getDateRange(value) {
|
||||
|
||||
export function getDateRangeValues(startDate, endDate) {
|
||||
let unit = 'year';
|
||||
if (differenceInHours(endDate, startDate) <= 72) {
|
||||
if (differenceInHours(endDate, startDate) <= 48) {
|
||||
unit = 'hour';
|
||||
} else if (differenceInCalendarDays(endDate, startDate) <= 90) {
|
||||
unit = 'day';
|
||||
|
||||
Reference in new issue
Block a user