mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 15:23:38 +01:00
Remove languages table on main metrics page
This commit is contained in:
parent
9a326a33a0
commit
7725553097
@ -23,7 +23,6 @@ export default function MetricsTable({
|
|||||||
filterOptions,
|
filterOptions,
|
||||||
limit,
|
limit,
|
||||||
onDataLoad,
|
onDataLoad,
|
||||||
maxHeight = null,
|
|
||||||
...props
|
...props
|
||||||
}) {
|
}) {
|
||||||
const shareToken = useShareToken();
|
const shareToken = useShareToken();
|
||||||
@ -63,10 +62,7 @@ export default function MetricsTable({
|
|||||||
}, [data, error, dataFilter, filterOptions]);
|
}, [data, error, dataFilter, filterOptions]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div className={classNames(styles.container, className)}>
|
||||||
className={classNames(styles.container, className)}
|
|
||||||
style={maxHeight ? { minHeight: 0, maxHeight } : {}}
|
|
||||||
>
|
|
||||||
{!data && loading && <Loading />}
|
{!data && loading && <Loading />}
|
||||||
{error && <ErrorMessage />}
|
{error && <ErrorMessage />}
|
||||||
{data && !error && <DataTable {...props} data={filteredData} className={className} />}
|
{data && !error && <DataTable {...props} data={filteredData} className={className} />}
|
||||||
|
@ -153,8 +153,7 @@ export default function WebsiteDetails({ websiteId }) {
|
|||||||
<WorldMap data={countryData} />
|
<WorldMap data={countryData} />
|
||||||
</GridColumn>
|
</GridColumn>
|
||||||
<GridColumn xs={12} md={12} lg={4}>
|
<GridColumn xs={12} md={12} lg={4}>
|
||||||
<CountriesTable maxHeight={265} {...tableProps} onDataLoad={setCountryData} />
|
<CountriesTable {...tableProps} onDataLoad={setCountryData} />
|
||||||
<LanguagesTable maxHeight={265} {...tableProps} />
|
|
||||||
</GridColumn>
|
</GridColumn>
|
||||||
</GridRow>
|
</GridRow>
|
||||||
<GridRow className={classNames({ [styles.hidden]: !eventsData?.length > 0 })}>
|
<GridRow className={classNames({ [styles.hidden]: !eventsData?.length > 0 })}>
|
||||||
|
Loading…
Reference in New Issue
Block a user