diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2020-05-11 14:42:59 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2020-05-11 14:42:59 +0200 |
| commit | e65b805e94052d993f7ef486226cae0ebf9965b5 (patch) | |
| tree | 75115cd3561c90ecd330c54dc0ba4d16bd13ba5e /src/components/app/map | |
| parent | 3d817d26461cd2f7904e55e46d66bb0b032420a8 (diff) | |
| parent | e94daacc1d9fb3870a74256de3b94be0dbaf05a1 (diff) | |
Merge branch 'fixes' into 'master'
Upgrade and regression fixes
See merge request opendc/opendc-frontend!62
Diffstat (limited to 'src/components/app/map')
| -rw-r--r-- | src/components/app/map/MapStageComponent.js | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/src/components/app/map/MapStageComponent.js b/src/components/app/map/MapStageComponent.js index ce6a60f6..4e4972f4 100644 --- a/src/components/app/map/MapStageComponent.js +++ b/src/components/app/map/MapStageComponent.js @@ -7,6 +7,8 @@ import RoomHoverLayer from "../../../containers/app/map/layers/RoomHoverLayer"; import jQuery from "../../../util/jquery"; import { NAVBAR_HEIGHT } from "../../navigation/Navbar"; import { MAP_MOVE_PIXELS_PER_EVENT } from "./MapConstants"; +import {Provider} from "react-redux"; +import {store} from "../../../store/configure-store"; class MapStageComponent extends React.Component { state = { @@ -14,8 +16,8 @@ class MapStageComponent extends React.Component { mouseY: 0 }; - constructor() { - super(); + constructor(props) { + super(props); this.updateDimensions = this.updateDimensions.bind(this); this.updateScale = this.updateScale.bind(this); @@ -104,15 +106,17 @@ class MapStageComponent extends React.Component { height={this.props.mapDimensions.height} onMouseMove={this.updateMousePosition.bind(this)} > - <MapLayer /> - <RoomHoverLayer - mouseX={this.state.mouseX} - mouseY={this.state.mouseY} - /> - <ObjectHoverLayer - mouseX={this.state.mouseX} - mouseY={this.state.mouseY} - /> + <Provider store={store}> + <MapLayer /> + <RoomHoverLayer + mouseX={this.state.mouseX} + mouseY={this.state.mouseY} + /> + <ObjectHoverLayer + mouseX={this.state.mouseX} + mouseY={this.state.mouseY} + /> + </Provider> </Stage> </Shortcuts> ); |
