From 6551d9742f7524176877300d1f6f77ee2c337bbb Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Fri, 3 Dec 2021 20:32:54 +0100 Subject: [PATCH] revert part of whitespace changes --- app/src/frontend/map/map.tsx | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/app/src/frontend/map/map.tsx b/app/src/frontend/map/map.tsx index f7cc4e18..fb98a708 100644 --- a/app/src/frontend/map/map.tsx +++ b/app/src/frontend/map/map.tsx @@ -51,7 +51,7 @@ class ColouringMap extends Component { this.themeSwitch = this.themeSwitch.bind(this); } - handleLocate(lat: number, lng: number, zoom: number) { + handleLocate(lat: number, lng: number, zoom: number){ this.setState({ position: [lat, lng], zoom: zoom @@ -69,8 +69,8 @@ class ColouringMap extends Component { themeSwitch(e) { e.preventDefault(); - const newTheme = (this.state.theme === 'light') ? 'night' : 'light'; - this.setState({ theme: newTheme }); + const newTheme = (this.state.theme === 'light')? 'night' : 'light'; + this.setState({theme: newTheme}); } render() { @@ -99,7 +99,7 @@ class ColouringMap extends Component { @@ -107,29 +107,29 @@ class ColouringMap extends Component { { tileset && - + } { this.props.selectedBuildingId && - + } - + { this.props.mode !== 'basic' && @@ -150,13 +150,13 @@ class ColouringMap extends Component { } } -function ClickHandler({ onClick }: { onClick: (e) => void }) { +function ClickHandler({ onClick }: {onClick: (e) => void}) { useMapEvent('click', (e) => onClick(e)); - + return null; } -function MapBackgroundColor({ theme }: { theme: MapTheme }) { +function MapBackgroundColor({ theme}: {theme: MapTheme}) { const map = useMap(); useEffect(() => { map.getContainer().style.backgroundColor = mapBackgroundColor[theme];