mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 14:47:14 +01:00
Fixed event data display.
This commit is contained in:
parent
89f7b39bfe
commit
91d2b596d6
4 changed files with 20 additions and 16 deletions
|
|
@ -2,6 +2,7 @@ import Link from 'next/link';
|
|||
import { GridTable, GridColumn } from 'react-basics';
|
||||
import { useMessages, usePageQuery } from 'hooks';
|
||||
import Empty from 'components/common/Empty';
|
||||
import { DATA_TYPES } from 'lib/constants';
|
||||
|
||||
export function EventDataTable({ data = [] }) {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
|
|
@ -15,7 +16,7 @@ export function EventDataTable({ data = [] }) {
|
|||
<GridTable data={data}>
|
||||
<GridColumn name="eventName" label={formatMessage(labels.event)}>
|
||||
{row => (
|
||||
<Link href={resolveUrl({ eventName: row.event })} shallow={true}>
|
||||
<Link href={resolveUrl({ eventName: row.eventName })} shallow={true}>
|
||||
{row.eventName}
|
||||
</Link>
|
||||
)}
|
||||
|
|
@ -24,7 +25,7 @@ export function EventDataTable({ data = [] }) {
|
|||
{row => row.fieldName}
|
||||
</GridColumn>
|
||||
<GridColumn name="dataType" label={formatMessage(labels.type)}>
|
||||
{row => row.dataType}
|
||||
{row => DATA_TYPES[row.dataType]}
|
||||
</GridColumn>
|
||||
<GridColumn name="total" label={formatMessage(labels.totalRecords)}>
|
||||
{({ total }) => total.toLocaleString()}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue