Skip to content

CountryName component

We now set countryCodes in all components that use it, but it would be more helpful to have a simple component <CountryName code3={ 'MEX' } /> that uses codes from Redux.

Something like:

const countryCode = (code3: string, countryCodes) => ( { countryCodes && countryCodes[code3] || null } );

const CountryCode = connect(mapStateToProps)(countryCode);
export { CountryCode };
Edited by Matija Obreza
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information