add info box-2
This commit is contained in:
parent
281720d10b
commit
c969bb351b
@ -266,6 +266,7 @@ class ControlInAfricaMap extends React.Component {
|
|||||||
this.setState({
|
this.setState({
|
||||||
selectedCountriesNames: [],
|
selectedCountriesNames: [],
|
||||||
selectedCountryColor: "yellow",
|
selectedCountryColor: "yellow",
|
||||||
|
showInfoBox: false,
|
||||||
});
|
});
|
||||||
const countryName = e.target.feature.properties.name;
|
const countryName = e.target.feature.properties.name;
|
||||||
if (countryName === this.state.selectedCountry) {
|
if (countryName === this.state.selectedCountry) {
|
||||||
|
Loading…
Reference in New Issue
Block a user