mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Update table components.
This commit is contained in:
parent
1fcb610bdd
commit
4119e80a9a
11 changed files with 38 additions and 39 deletions
|
|
@ -24,9 +24,11 @@ export default function MetricsTable({
|
|||
dataFilter,
|
||||
filterOptions,
|
||||
limit,
|
||||
virtualize,
|
||||
renderLabel,
|
||||
height,
|
||||
onDataLoad = () => {},
|
||||
onDataLoad,
|
||||
...props
|
||||
}) {
|
||||
const [dateRange] = useDateRange(websiteId);
|
||||
const { startDate, endDate, modified } = dateRange;
|
||||
|
|
@ -70,14 +72,14 @@ export default function MetricsTable({
|
|||
{error && <ErrorMessage />}
|
||||
{data && !error && (
|
||||
<DataTable
|
||||
{...props}
|
||||
title={title}
|
||||
data={filteredData}
|
||||
metric={metric}
|
||||
className={className}
|
||||
renderLabel={renderLabel}
|
||||
limit={limit}
|
||||
height={height}
|
||||
animate={limit > 0}
|
||||
virtualize={virtualize}
|
||||
/>
|
||||
)}
|
||||
<div className={styles.footer}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue