This commit is contained in:
Minseo Lee 2024-08-29 23:18:51 +09:00
parent b60bd074f4
commit f46d95a37b
9 changed files with 9 additions and 9 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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();

View file

@ -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;