mirror of
https://github.com/umami-software/umami.git
synced 2026-05-30 06:47:25 +00:00
feat: introduce WebsiteDateFilter for date range selection and DataGrid for paginated data display.
This commit is contained in:
@@ -56,7 +56,7 @@ export function DataGrid({
|
||||
(page: number) => {
|
||||
router.push(updateParams({ search, page }));
|
||||
},
|
||||
[search],
|
||||
[search, updateParams],
|
||||
);
|
||||
|
||||
const child = data ? (typeof children === 'function' ? children(data) : children) : null;
|
||||
|
||||
@@ -38,10 +38,11 @@ export function WebsiteDateFilter({
|
||||
updateParams({
|
||||
date: `${getDateRangeValue(websiteDateRange.startDate, websiteDateRange.endDate)}:all`,
|
||||
offset: undefined,
|
||||
page: 1,
|
||||
}),
|
||||
);
|
||||
} else {
|
||||
router.push(updateParams({ date, offset: undefined }));
|
||||
router.push(updateParams({ date, offset: undefined, page: 1 }));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user