Pass original date in dataset.
This commit is contained in:
1 parent
3a737e7e25
commit
c61f089729
2 files changed
+2
-3
No files matched your search
@@ -38,8 +38,7 @@ export function WebsiteDateFilter({
|
||||
const isAllTime = value === 'all';
|
||||
const isCustomRange = value.startsWith('range');
|
||||
|
||||
const disableForward =
|
||||
value === 'all' || isAfter(getOffsetDateRange(dateRange, 1).startDate, new Date());
|
||||
const disableForward = value === 'all' || isAfter(endDate, new Date());
|
||||
|
||||
const handleChange = (date: string | DateRange) => {
|
||||
router.push(renderUrl({ date }));
|
||||
|
||||
Reference in new issue
Block a user