remove filterBoxOpen for now
This commit is contained in:
parent
032d0d8f4b
commit
780217490b
1 changed files with 1 additions and 15 deletions
|
@ -25,16 +25,10 @@ class MapView extends Component {
|
|||
constructor(props) {
|
||||
super(props)
|
||||
this.state = {
|
||||
filterBoxOpen: false,
|
||||
chatOpen: false
|
||||
}
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
window && window.addEventListener('resize', this.resize)
|
||||
this.resize()
|
||||
}
|
||||
|
||||
endMap() {
|
||||
this.setState({
|
||||
filterBoxOpen: false,
|
||||
|
@ -54,21 +48,13 @@ class MapView extends Component {
|
|||
else if (oldMapId && !mapId) this.endMap()
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
window && window.removeEventListener('resize', this.resize)
|
||||
}
|
||||
|
||||
resize = () => {
|
||||
|
||||
}
|
||||
|
||||
render = () => {
|
||||
const { map, currentUser, onOpen, onClose,
|
||||
toggleMapInfoBox, toggleFilterBox, infoBoxHtml, filterBoxHtml,
|
||||
openImportLightbox, forkMap, openHelpLightbox,
|
||||
mapIsStarred, onMapStar, onMapUnstar,
|
||||
onZoomExtents, onZoomIn, onZoomOut } = this.props
|
||||
const { filterBoxOpen, chatOpen } = this.state
|
||||
const { chatOpen } = this.state
|
||||
const onChatOpen = () => {
|
||||
this.setState({chatOpen: true})
|
||||
onOpen()
|
||||
|
|
Loading…
Add table
Reference in a new issue