Improved SelectionMap
This commit is contained in:
parent
2ef2fee802
commit
29f9a2d476
5 changed files with 106 additions and 76 deletions
|
|
@ -67,8 +67,7 @@ class FireSubscription extends React.Component {
|
|||
</Row>
|
||||
<Row className="align-items-center justify-content-center">
|
||||
<SelectionMap
|
||||
lat={this.state.lat}
|
||||
lng={this.state.lng}
|
||||
center={[this.state.lat, this.state.lng]}
|
||||
distance={this.state.distance}
|
||||
history={this.props.history}
|
||||
onSelection={(state) => this.onSelection(state)}
|
||||
|
|
|
|||
|
|
@ -9,10 +9,10 @@ class SubsAutocomplete extends React.Component {
|
|||
super(props);
|
||||
this.state = {
|
||||
address: '',
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
onChange = (address) => { this.setState({ address }) }
|
||||
onChange = (address) => { this.setState({ address }); }
|
||||
|
||||
handleSelect = (address) => {
|
||||
const self = this;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue