diff --git a/frontend/app/components/ui/CountryFlag/CountryFlag.js b/frontend/app/components/ui/CountryFlag/CountryFlag.js index db6a4491b..2ca032048 100644 --- a/frontend/app/components/ui/CountryFlag/CountryFlag.js +++ b/frontend/app/components/ui/CountryFlag/CountryFlag.js @@ -7,24 +7,17 @@ const CountryFlag = React.memo(({ country, className, style = {}, label = false const knownCountry = !!country && country !== 'UN'; const countryFlag = knownCountry ? country.toLowerCase() : ''; const countryName = knownCountry ? countries[ country ] : 'Unknown Country'; - + return (
- : (
Unknown Country
- ) - // :
{ "N/A" }
- } - content={ countryName } - inverted - size="tiny" - /> + )} { knownCountry && label &&
{ countryName }
}
); @@ -32,4 +25,4 @@ const CountryFlag = React.memo(({ country, className, style = {}, label = false CountryFlag.displayName = "CountryFlag"; -export default CountryFlag; \ No newline at end of file +export default CountryFlag;