add info box-2

This commit is contained in:
louai98 2024-06-03 15:59:34 +02:00
parent 281720d10b
commit c969bb351b

View File

@ -266,6 +266,7 @@ class ControlInAfricaMap extends React.Component {
this.setState({
selectedCountriesNames: [],
selectedCountryColor: "yellow",
showInfoBox: false,
});
const countryName = e.target.feature.properties.name;
if (countryName === this.state.selectedCountry) {