tnovau/react-circle-flags

Country Code for EU is not working

Closed this issue · 2 comments

Hello! Thank you so much for your module.

The country code for EU is not working. EU, eu, and EUROPEAN_UNION (as listed in the gallery) return the default Unknown flag.

The other country flags are working as intended.

Values:
<CountryFlag countryCode='EUROPEAN_UNION' height='30' onClick={setIsOpen} />
<CountryFlag countryCode='eu' height='30' onClick={setIsOpen} />

Screenshots:
image
image
image

Nevermind! Fixed it by looking at your source. But the gallery needs updating for EUROPEAN_UNION to lowercase and a few broken flags (e.g. Corsica)

Hi @apriltaoyvr, thanks for reporting this.

I'm open to receive PR's if you want to contribute.