mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 08:37:13 +01:00
More updates to event data report.
This commit is contained in:
parent
7c467db27e
commit
2f4d669836
13 changed files with 202 additions and 173 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { useContext } from 'react';
|
||||
import DataTable from 'components/metrics/DataTable';
|
||||
import { GridTable, GridColumn } from 'react-basics';
|
||||
import { useMessages } from 'hooks';
|
||||
import { ReportContext } from '../Report';
|
||||
|
||||
|
|
@ -8,12 +8,11 @@ export function EventDataTable() {
|
|||
const { formatMessage, labels } = useMessages();
|
||||
|
||||
return (
|
||||
<DataTable
|
||||
data={report?.data}
|
||||
title={formatMessage(labels.eventData)}
|
||||
metric="#"
|
||||
showPercentage={true}
|
||||
/>
|
||||
<GridTable data={report?.data || []}>
|
||||
<GridColumn name="field" label={formatMessage(labels.field)} />
|
||||
<GridColumn name="value" label={formatMessage(labels.value)} />
|
||||
<GridColumn name="total" label={formatMessage(labels.total)} />
|
||||
</GridTable>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue