Commit d1895ced authored by jvfpw18's avatar jvfpw18

Remove map double click in Agreements

parent 1b92839e
......@@ -102,8 +102,8 @@ class AgreementsInExecution extends Component {
handleMapClick(where) {
this.setState({
clickedInMap: (where !== this.state.clickedInMap) ? where : null,
state: (getStateAcronym(where) !== this.state.state) ? getStateAcronym(where) : null
clickedInMap: where,
state: getStateAcronym(where)
})
}
......@@ -150,7 +150,7 @@ class AgreementsInExecution extends Component {
</Col>
<Col l={5} m={8} s={8}>
<p className={`${contrastString}eixoSubHeader`}> Clique sobre qualquer estado no mapa para apresentar os
dados somente daquele estado. Clique novamente para voltar aos dados do Brasil. </p>
dados somente daquele estado. </p>
</Col>
</Row>
<Row>
......@@ -160,6 +160,7 @@ class AgreementsInExecution extends Component {
<Col s={10} m={10} l={8} offset={'m1 s1'}>
<Map
getMapClick={this.handleMapClick}
ddValue={{id: "estado", value: this.state.state}}
location='agreementsInExecution'>
</Map>
</Col>
......
......@@ -207,7 +207,7 @@ class SinapirMembers extends Component {
<Card title="Gestores e informações de contato (CadPIR)">
<Row>
<Input className='filled-in' type='checkbox'
value={this.state.showOnlySinapirContacts}
value={"" + this.state.showOnlySinapirContacts}
label="Mostrar apenas contatos de membros participantes do SNPIR"
checked
onClick={this.handleCheckboxClick}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment