From 780217490bc054f648dc90f72b739520e178b0c8 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Sun, 12 Mar 2017 01:00:37 -0500 Subject: [PATCH] remove filterBoxOpen for now --- frontend/src/components/MapView/index.js | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/frontend/src/components/MapView/index.js b/frontend/src/components/MapView/index.js index 4ac1c99a..a6004463 100644 --- a/frontend/src/components/MapView/index.js +++ b/frontend/src/components/MapView/index.js @@ -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()