Small fixes
This commit is contained in:
@@ -102,19 +102,6 @@ export default class Filters extends React.Component {
|
||||
}
|
||||
|
||||
onResetSearch (e) {
|
||||
this.props.dispatch({
|
||||
type: 'UPDATE_ROUTE',
|
||||
action: {
|
||||
params: {
|
||||
minPrice: '',
|
||||
maxPrice: '',
|
||||
minSize: '',
|
||||
maxSize: '',
|
||||
rooms: '',
|
||||
category: ''
|
||||
}
|
||||
}
|
||||
})
|
||||
this.props.dispatch({
|
||||
type: 'RESET_FILTERS'
|
||||
})
|
||||
|
||||
@@ -95,7 +95,8 @@ class Main extends React.Component {
|
||||
});
|
||||
|
||||
var options = {
|
||||
componentRestrictions: {country: 'BA'}
|
||||
componentRestrictions: {country: 'BA'},
|
||||
types: [ 'geocode' ]
|
||||
}
|
||||
|
||||
const regularIdle = () => {
|
||||
@@ -163,6 +164,8 @@ class Main extends React.Component {
|
||||
this.dispatch({type: 'MOBILE_MAP_VIEW'})
|
||||
map.fitBounds(place.geometry.viewport)
|
||||
}
|
||||
|
||||
map.setZoom(map.zoom + 1);
|
||||
} else {
|
||||
map.setCenter(place.geometry.location)
|
||||
map.setZoom(18)
|
||||
|
||||
Reference in New Issue
Block a user