mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 17:45:38 +01:00
Events table.
This commit is contained in:
parent
2addb96e4b
commit
5206622d5a
13 changed files with 131 additions and 31 deletions
32
components/metrics/EventsTable.js
Normal file
32
components/metrics/EventsTable.js
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
import React from 'react';
|
||||
import MetricsTable from './MetricsTable';
|
||||
import styles from './EventsTable.module.css';
|
||||
|
||||
export default function DevicesTable({
|
||||
websiteId,
|
||||
startDate,
|
||||
endDate,
|
||||
limit,
|
||||
onExpand,
|
||||
onDataLoad,
|
||||
}) {
|
||||
return (
|
||||
<MetricsTable
|
||||
title="Events"
|
||||
type="event"
|
||||
metric="Actions"
|
||||
websiteId={websiteId}
|
||||
startDate={startDate}
|
||||
endDate={endDate}
|
||||
limit={limit}
|
||||
renderLabel={({ w, x }) => (
|
||||
<>
|
||||
<span className={styles.type}>{w}</span>
|
||||
{x}
|
||||
</>
|
||||
)}
|
||||
onExpand={onExpand}
|
||||
onDataLoad={onDataLoad}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue