Handle country data for regions and cities.
This commit is contained in:
1 parent
8c9e473550
commit
684587f945
3 files changed
+13
-15
No files matched your search
@@ -22,9 +22,7 @@ export function CitiesTable({ websiteId, ...props }) {
|
||||
<FilterLink id="city" value={city} label={renderLabel(city, country)}>
|
||||
{country && (
|
||||
<img
|
||||
src={`${basePath}/images/flags/${
|
||||
country?.split?.('-')?.[0]?.toLowerCase() || 'xx'
|
||||
}.png`}
|
||||
src={`${basePath}/images/flags/${country?.toLowerCase() || 'xx'}.png`}
|
||||
alt={country}
|
||||
/>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user