Skip to content

Commit

Permalink
fix a few getting started bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
akre54 committed Nov 8, 2017
1 parent f461741 commit 97259a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/Badge.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';

export default function Bagdge({tag, key}) {
export default function Badge({tag, key}) {
return (<div className="badge" key={key}>{tag}</div>);
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class App extends Component {
window.addEventListener('resize', this._resize);
this._resize();
}

componentWillUnmount() {
window.removeEventListener('resize', this._resize);
}
Expand All @@ -51,7 +51,7 @@ export default class App extends Component {
<MapGL
{...this.state.viewport}
mapStyle={MAPBOX_STYLE}
onViewportChange={viewport => this._onViewportChange.bind(viewport)}
onViewportChange={viewport => this._onViewportChange(viewport)}
mapboxApiAccessToken={MAPBOX_TOKEN}>
</MapGL>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ export default class App extends Component {

componentDidMount() {
this._processData();
window.addEventListener('resize', () => this._resize);
window.addEventListener('resize', this._resize);
this._resize();
}

componentWillUnmount() {
window.removeEventListener('resize', () => this._resize);
window.removeEventListener('resize', this._resize);
}

_processData() {
Expand Down

0 comments on commit 97259a9

Please sign in to comment.