tnovau / react-circle-flags

:rocket: A React component with a collection of 300+ minimal circular SVG country flags. Wrapper of HatScripts/circle-flags
https://tnovau.github.io/react-circle-flags
MIT License
61 stars 8 forks source link

Country Code for EU is not working #25

Closed apriltaoyvr closed 2 years ago

apriltaoyvr commented 2 years ago

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

apriltaoyvr commented 2 years ago

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)

tnovau commented 2 years ago

Hi @apriltaoyvr, thanks for reporting this.

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