mirror of
https://github.com/umami-software/umami.git
synced 2026-02-11 08:07:12 +01:00
checkpoint
This commit is contained in:
parent
cb038a51f3
commit
de509e7ccc
23 changed files with 335 additions and 236 deletions
14
components/pages/reports/funnel/FunnelTable.js
Normal file
14
components/pages/reports/funnel/FunnelTable.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import DataTable from 'components/metrics/DataTable';
|
||||
import useMessages from 'hooks/useMessages';
|
||||
|
||||
export function DevicesTable({ ...props }) {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const { data } = props;
|
||||
|
||||
const tableData =
|
||||
data?.map(a => ({ x: a.x, y: a.y, z: Math.floor(a.y / data[0].y) * 100 })) || [];
|
||||
|
||||
return <DataTable data={tableData} title="Url" type="device" />;
|
||||
}
|
||||
|
||||
export default DevicesTable;
|
||||
Loading…
Add table
Add a link
Reference in a new issue