mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 23:27:12 +01:00
Merge branch 'data-table' into dev
# Conflicts: # src/components/messages.js
This commit is contained in:
commit
92ccc64e47
12 changed files with 206 additions and 37 deletions
|
|
@ -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,
|
||||
}),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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 = [],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue