Merge branch 'data-table' into dev

# Conflicts:
#	src/components/messages.js
This commit is contained in:
Mike Cao 2023-09-21 21:54:39 -07:00
commit 92ccc64e47
12 changed files with 206 additions and 37 deletions

View file

@ -13,17 +13,17 @@ export function EventsChart({ websiteId, className, token }) {
const { locale } = useLocale();
const [timezone] = useTimezone();
const {
query: { url, eventName },
query: { url, event },
} = usePageQuery();
const { data, isLoading } = useQuery(['events', websiteId, modified, eventName], () =>
const { data, isLoading } = useQuery(['events', websiteId, modified, event], () =>
get(`/websites/${websiteId}/events`, {
startAt: +startDate,
endAt: +endDate,
unit,
timezone,
url,
eventName,
event,
token,
}),
);

View file

@ -6,7 +6,7 @@ import classNames from 'classnames';
import Empty from 'components/common/Empty';
import { formatNumber, formatLongNumber } from 'lib/format';
import useMessages from 'components/hooks/useMessages';
import styles from './DataTable.module.css';
import styles from './ListTable.module.css';
export function ListTable({
data = [],