diff --git a/components/metrics/CountriesTable.js b/components/metrics/CountriesTable.js index 43ca374e..a5c9c801 100644 --- a/components/metrics/CountriesTable.js +++ b/components/metrics/CountriesTable.js @@ -10,7 +10,11 @@ export default function CountriesTable({ websiteId, onDataLoad, ...props }) { const countryNames = useCountryNames(locale); function renderLabel({ x }) { - return
{countryNames[x] ?? 'Unknown'}
; + return ( +
+ {countryNames[x] ?? } +
+ ); } return ( diff --git a/components/metrics/DataTable.js b/components/metrics/DataTable.js index 2eff5519..d7e58cf7 100644 --- a/components/metrics/DataTable.js +++ b/components/metrics/DataTable.js @@ -2,6 +2,7 @@ import React, { useState } from 'react'; import { FixedSizeList } from 'react-window'; import { useSpring, animated, config } from 'react-spring'; import classNames from 'classnames'; +import { FormattedMessage } from 'react-intl'; import NoData from 'components/common/NoData'; import { formatNumber, formatLongNumber } from 'lib/format'; import styles from './DataTable.module.css'; @@ -27,7 +28,11 @@ export default function DataTable({ return ( + } value={value} percent={percent} animate={animate && !virtualize}