diff --git a/components/metrics/CityTable.js b/components/metrics/CityTable.js new file mode 100644 index 00000000..744fbaed --- /dev/null +++ b/components/metrics/CityTable.js @@ -0,0 +1,15 @@ +import React from 'react'; +import MetricsTable from './MetricsTable'; +import { FormattedMessage } from 'react-intl'; + +export default function CityTable({ websiteId, ...props }) { + return ( + } + type="city" + metric={} + websiteId={websiteId} + /> + ); +} diff --git a/components/metrics/RegionTable.js b/components/metrics/RegionTable.js new file mode 100644 index 00000000..1258494b --- /dev/null +++ b/components/metrics/RegionTable.js @@ -0,0 +1,15 @@ +import React from 'react'; +import MetricsTable from './MetricsTable'; +import { FormattedMessage } from 'react-intl'; + +export default function RegionTable({ websiteId, ...props }) { + return ( + } + type="region" + metric={} + websiteId={websiteId} + /> + ); +} diff --git a/components/pages/WebsiteDetails.js b/components/pages/WebsiteDetails.js index dd8034fc..f3b7fccc 100644 --- a/components/pages/WebsiteDetails.js +++ b/components/pages/WebsiteDetails.js @@ -16,6 +16,8 @@ import BrowsersTable from '../metrics/BrowsersTable'; import OSTable from '../metrics/OSTable'; import DevicesTable from '../metrics/DevicesTable'; import CountriesTable from '../metrics/CountriesTable'; +import RegionTable from '../metrics/RegionTable'; +import CityTable from '../metrics/CityTable'; import EventsTable from '../metrics/EventsTable'; import EventsChart from '../metrics/EventsChart'; import useFetch from 'hooks/useFetch'; @@ -151,12 +153,20 @@ export default function WebsiteDetails({ websiteId }) { - - - - + + + + + + + + + + + + 0 })}>