Remove languages table on main metrics page

This commit is contained in:
Chris Walsh committed 2021-12-17 18:25:07 -08:00
1 parent 9a326a33a0
commit 7725553097
2 files changed
+2 -7

No files matched your search

+1 -5
View File
@@ -23,7 +23,6 @@ export default function MetricsTable({
filterOptions,
limit,
onDataLoad,
maxHeight = null,
...props
}) {
const shareToken = useShareToken();
@@ -63,10 +62,7 @@ export default function MetricsTable({
}, [data, error, dataFilter, filterOptions]);
return (
<div
className={classNames(styles.container, className)}
style={maxHeight ? { minHeight: 0, maxHeight } : {}}
>
<div className={classNames(styles.container, className)}>
{!data && loading && <Loading />}
{error && <ErrorMessage />}
{data && !error && <DataTable {...props} data={filteredData} className={className} />}
+1 -2
View File
@@ -153,8 +153,7 @@ export default function WebsiteDetails({ websiteId }) {
<WorldMap data={countryData} />
</GridColumn>
<GridColumn xs={12} md={12} lg={4}>
<CountriesTable maxHeight={265} {...tableProps} onDataLoad={setCountryData} />
<LanguagesTable maxHeight={265} {...tableProps} />
<CountriesTable {...tableProps} onDataLoad={setCountryData} />
</GridColumn>
</GridRow>
<GridRow className={classNames({ [styles.hidden]: !eventsData?.length > 0 })}>