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) {
|
constructor(props) {
|
||||||
super(props)
|
super(props)
|
||||||
this.state = {
|
this.state = {
|
||||||
filterBoxOpen: false,
|
|
||||||
chatOpen: false
|
chatOpen: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
|
||||||
window && window.addEventListener('resize', this.resize)
|
|
||||||
this.resize()
|
|
||||||
}
|
|
||||||
|
|
||||||
endMap() {
|
endMap() {
|
||||||
this.setState({
|
this.setState({
|
||||||
filterBoxOpen: false,
|
filterBoxOpen: false,
|
||||||
|
@ -54,21 +48,13 @@ class MapView extends Component {
|
||||||
else if (oldMapId && !mapId) this.endMap()
|
else if (oldMapId && !mapId) this.endMap()
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
|
||||||
window && window.removeEventListener('resize', this.resize)
|
|
||||||
}
|
|
||||||
|
|
||||||
resize = () => {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
render = () => {
|
render = () => {
|
||||||
const { map, currentUser, onOpen, onClose,
|
const { map, currentUser, onOpen, onClose,
|
||||||
toggleMapInfoBox, toggleFilterBox, infoBoxHtml, filterBoxHtml,
|
toggleMapInfoBox, toggleFilterBox, infoBoxHtml, filterBoxHtml,
|
||||||
openImportLightbox, forkMap, openHelpLightbox,
|
openImportLightbox, forkMap, openHelpLightbox,
|
||||||
mapIsStarred, onMapStar, onMapUnstar,
|
mapIsStarred, onMapStar, onMapUnstar,
|
||||||
onZoomExtents, onZoomIn, onZoomOut } = this.props
|
onZoomExtents, onZoomIn, onZoomOut } = this.props
|
||||||
const { filterBoxOpen, chatOpen } = this.state
|
const { chatOpen } = this.state
|
||||||
const onChatOpen = () => {
|
const onChatOpen = () => {
|
||||||
this.setState({chatOpen: true})
|
this.setState({chatOpen: true})
|
||||||
onOpen()
|
onOpen()
|
||||||
|
|
Loading…
Add table
Reference in a new issue