mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Merge remote-tracking branch 'origin/dev' into dev
Some checks are pending
Node.js CI / build (postgresql, 18.18, 10) (push) Waiting to run
Some checks are pending
Node.js CI / build (postgresql, 18.18, 10) (push) Waiting to run
# Conflicts: # package.json # pnpm-lock.yaml # src/app/(main)/links/[linkId]/LinkHeader.tsx # src/app/(main)/pixels/[pixelId]/PixelHeader.tsx
This commit is contained in:
commit
33cb195fd0
4 changed files with 19 additions and 96 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { Button, Icon, ListItem, Row, Select, Text } from '@umami/react-zen';
|
||||
import { isAfter } from 'date-fns';
|
||||
import { useCallback, useMemo } from 'react';
|
||||
import { useMemo } from 'react';
|
||||
import { useDateRange, useDateRangeQuery, useMessages, useNavigation } from '@/components/hooks';
|
||||
import { ChevronRight } from '@/components/icons';
|
||||
import { getDateRangeValue } from '@/lib/date';
|
||||
|
|
@ -45,13 +45,9 @@ export function WebsiteDateFilter({
|
|||
}
|
||||
};
|
||||
|
||||
const handleIncrement = useCallback(
|
||||
(increment: number) => {
|
||||
router.push(updateParams({ offset: +offset + increment }));
|
||||
},
|
||||
[offset],
|
||||
);
|
||||
|
||||
const handleIncrement = increment => {
|
||||
router.push(updateParams({ offset: Number(offset) + increment }));
|
||||
};
|
||||
const handleSelect = (compare: any) => {
|
||||
router.push(updateParams({ compare }));
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue