Added search to metrics table.
This commit is contained in:
@@ -11,8 +11,8 @@ export function CitiesTable(props: MetricsTableProps) {
|
||||
const countryNames = useCountryNames(locale);
|
||||
|
||||
const renderLabel = (city: string, country: string) => {
|
||||
const name = countryNames[country];
|
||||
return name ? `${city}, ${name}` : city;
|
||||
const countryName = countryNames[country];
|
||||
return countryName ? `${city}, ${countryName}` : city;
|
||||
};
|
||||
|
||||
const renderLink = ({ x: city, country }) => {
|
||||
|
||||
Reference in New Issue
Block a user