mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 22:57:12 +01:00
Always cache prisma. Renamed WebsiteMonthSelect to MonthFilter.
This commit is contained in:
parent
92ee44756c
commit
904c313a64
7 changed files with 11 additions and 11 deletions
|
|
@ -2,7 +2,7 @@ import { useDateRange, useNavigation } from '@/components/hooks';
|
|||
import { getMonthDateRangeValue } from '@/lib/date';
|
||||
import { MonthSelect } from './MonthSelect';
|
||||
|
||||
export function WebsiteMonthSelect() {
|
||||
export function MonthFilter() {
|
||||
const { router, updateParams } = useNavigation();
|
||||
const {
|
||||
dateRange: { startDate },
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import { LoadingButton, Icon, Tooltip, TooltipTrigger } from '@umami/react-zen';
|
||||
import { setWebsiteDateRange } from '@/store/websites';
|
||||
import { useDateRange } from '@/components/hooks';
|
||||
import { Refresh } from '@/components/icons';
|
||||
import { RefreshCw } from '@/components/icons';
|
||||
import { useMessages } from '@/components/hooks';
|
||||
|
||||
export function RefreshButton({
|
||||
|
|
@ -24,7 +24,7 @@ export function RefreshButton({
|
|||
<TooltipTrigger>
|
||||
<LoadingButton isLoading={isLoading} onPress={handleClick}>
|
||||
<Icon>
|
||||
<Refresh />
|
||||
<RefreshCw />
|
||||
</Icon>
|
||||
</LoadingButton>
|
||||
<Tooltip>{formatMessage(labels.refresh)}</Tooltip>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue