mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 15:47:13 +01:00
Event data report UI.
This commit is contained in:
parent
6316a0b917
commit
9d7862cbd6
36 changed files with 660 additions and 254 deletions
|
|
@ -3,7 +3,7 @@ import useMeasure from 'react-use-measure';
|
|||
import { FixedSizeList } from 'react-window';
|
||||
import { useSpring, animated, config } from 'react-spring';
|
||||
import classNames from 'classnames';
|
||||
import NoData from 'components/common/NoData';
|
||||
import Empty from 'components/common/Empty';
|
||||
import { formatNumber, formatLongNumber } from 'lib/format';
|
||||
import useMessages from 'hooks/useMessages';
|
||||
import styles from './DataTable.module.css';
|
||||
|
|
@ -55,7 +55,7 @@ export function DataTable({
|
|||
</div>
|
||||
</div>
|
||||
<div ref={ref} className={styles.body}>
|
||||
{data?.length === 0 && <NoData />}
|
||||
{data?.length === 0 && <Empty />}
|
||||
{virtualize && data.length > 0 ? (
|
||||
<FixedSizeList height={bounds.height} itemCount={data.length} itemSize={30}>
|
||||
{Row}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue