summaryrefslogtreecommitdiff
path: root/src/components/app/map
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2020-06-08 16:11:55 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-06-08 16:37:24 +0200
commit7032a007d4431f5a0c4c5e2d3f3bd20462d49950 (patch)
tree184ae398513cb0d050aeee6ffaf6592ef6099b0c /src/components/app/map
parent03cf0d1d39f3e8cc2232903ceab4994e7b82eb22 (diff)
parentebe34d0d2cf5f1967e067bf0e43505dd46025c57 (diff)
Merge remote-tracking branch 'gitlab/master'
Diffstat (limited to 'src/components/app/map')
-rw-r--r--src/components/app/map/MapStageComponent.js26
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..67b3349c 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>
);