mirror of
https://github.com/umami-software/umami.git
synced 2026-02-20 12:35:38 +01:00
sort
This commit is contained in:
parent
b60bd074f4
commit
f46d95a37b
9 changed files with 9 additions and 9 deletions
|
|
@ -1,8 +1,8 @@
|
|||
import { setItem } from 'next-basics';
|
||||
import { TIMEZONE_CONFIG } from 'lib/constants';
|
||||
import { zonedTimeToUtc, utcToZonedTime } from 'date-fns-tz';
|
||||
import useStore, { setTimezone } from 'store/app';
|
||||
import type { FormatDateOptions, IntlShape } from 'react-intl';
|
||||
import useStore, { setTimezone } from 'store/app';
|
||||
|
||||
const selector = (state: { timezone: string }) => state.timezone;
|
||||
|
||||
|
|
|
|||
|
|
@ -3,11 +3,11 @@ import { Icon, Modal, Dropdown, Item, Text, Flexbox } from 'react-basics';
|
|||
import { endOfYear, isSameDay } from 'date-fns';
|
||||
import DatePickerForm from 'components/metrics/DatePickerForm';
|
||||
import { useMessages } from 'components/hooks';
|
||||
import { useIntl } from 'react-intl';
|
||||
import Icons from 'components/icons';
|
||||
import { parseDateValue } from 'lib/date';
|
||||
import styles from './DateFilter.module.css';
|
||||
import classNames from 'classnames';
|
||||
import { useIntl } from 'react-intl';
|
||||
|
||||
export interface DateFilterProps {
|
||||
value: string;
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ import {
|
|||
import { startOfMonth, endOfMonth } from 'date-fns';
|
||||
import Icons from 'components/icons';
|
||||
import { useLocale } from 'components/hooks';
|
||||
import styles from './MonthSelect.module.css';
|
||||
import { useIntl } from 'react-intl';
|
||||
import styles from './MonthSelect.module.css';
|
||||
|
||||
export function MonthSelect({ date = new Date(), onChange }) {
|
||||
const { dateLocale } = useLocale();
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ import { useMemo } from 'react';
|
|||
import { colord } from 'colord';
|
||||
import BarChart from 'components/charts/BarChart';
|
||||
import { useDateRange, useWebsiteEventsSeries } from 'components/hooks';
|
||||
import { useIntl } from 'react-intl';
|
||||
import { CHART_COLORS } from 'lib/constants';
|
||||
import { renderDateLabels } from 'lib/charts';
|
||||
import { useIntl } from 'react-intl';
|
||||
|
||||
export interface EventsChartProps {
|
||||
websiteId: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue