Update table components.

This commit is contained in:
Mike Cao 2020-10-11 01:33:26 -07:00
parent 1fcb610bdd
commit 4119e80a9a
11 changed files with 38 additions and 39 deletions

View file

@ -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}>