summaryrefslogtreecommitdiff
path: root/src/components/app
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
parent03cf0d1d39f3e8cc2232903ceab4994e7b82eb22 (diff)
parentebe34d0d2cf5f1967e067bf0e43505dd46025c57 (diff)
Merge remote-tracking branch 'gitlab/master'
Diffstat (limited to 'src/components/app')
-rw-r--r--src/components/app/map/MapStageComponent.js26
-rw-r--r--src/components/app/sidebars/topology/machine/UnitComponent.js8
2 files changed, 18 insertions, 16 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>
);
diff --git a/src/components/app/sidebars/topology/machine/UnitComponent.js b/src/components/app/sidebars/topology/machine/UnitComponent.js
index 10a310e8..7c27043d 100644
--- a/src/components/app/sidebars/topology/machine/UnitComponent.js
+++ b/src/components/app/sidebars/topology/machine/UnitComponent.js
@@ -49,18 +49,16 @@ class UnitComponent extends React.Component {
this.props.unit.generation}
</span>
<span>
- <a
+ <span
tabIndex="0"
- className="unit-info-popover btn btn-outline-info mr-1"
+ className="unit-info-popover btn btn-outline-info mr-1 fa fa-info-circle"
role="button"
data-toggle="popover"
data-trigger="focus"
title="Unit information"
data-content={unitInfo}
data-html="true"
- >
- <span className="fa fa-info-circle" />
- </a>
+ />
{this.props.inSimulation ? (
undefined
) : (