summaryrefslogtreecommitdiff
path: root/src/containers/app/sidebars/topology
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers/app/sidebars/topology')
-rw-r--r--src/containers/app/sidebars/topology/TopologySidebar.js12
-rw-r--r--src/containers/app/sidebars/topology/building/BuildingSidebarContainer.js14
-rw-r--r--src/containers/app/sidebars/topology/building/NewRoomConstructionContainer.js31
-rw-r--r--src/containers/app/sidebars/topology/machine/BackToRackContainer.js17
-rw-r--r--src/containers/app/sidebars/topology/machine/DeleteMachineContainer.js17
-rw-r--r--src/containers/app/sidebars/topology/machine/MachineNameContainer.js12
-rw-r--r--src/containers/app/sidebars/topology/machine/MachineSidebarContainer.js20
-rw-r--r--src/containers/app/sidebars/topology/machine/UnitAddContainer.js23
-rw-r--r--src/containers/app/sidebars/topology/machine/UnitContainer.js25
-rw-r--r--src/containers/app/sidebars/topology/machine/UnitListContainer.js20
-rw-r--r--src/containers/app/sidebars/topology/machine/UnitTabsContainer.js12
-rw-r--r--src/containers/app/sidebars/topology/rack/BackToRoomContainer.js17
-rw-r--r--src/containers/app/sidebars/topology/rack/DeleteRackContainer.js17
-rw-r--r--src/containers/app/sidebars/topology/rack/EmptySlotContainer.js23
-rw-r--r--src/containers/app/sidebars/topology/rack/MachineContainer.js49
-rw-r--r--src/containers/app/sidebars/topology/rack/MachineListContainer.js15
-rw-r--r--src/containers/app/sidebars/topology/rack/RackNameContainer.js26
-rw-r--r--src/containers/app/sidebars/topology/rack/RackSidebarContainer.js14
-rw-r--r--src/containers/app/sidebars/topology/room/BackToBuildingContainer.js17
-rw-r--r--src/containers/app/sidebars/topology/room/DeleteRoomContainer.js17
-rw-r--r--src/containers/app/sidebars/topology/room/RackConstructionContainer.js28
-rw-r--r--src/containers/app/sidebars/topology/room/RoomNameContainer.js23
-rw-r--r--src/containers/app/sidebars/topology/room/RoomSidebarContainer.js16
-rw-r--r--src/containers/app/sidebars/topology/room/RoomTypeContainer.js12
24 files changed, 234 insertions, 243 deletions
diff --git a/src/containers/app/sidebars/topology/TopologySidebar.js b/src/containers/app/sidebars/topology/TopologySidebar.js
index ac59f5cc..31c902fc 100644
--- a/src/containers/app/sidebars/topology/TopologySidebar.js
+++ b/src/containers/app/sidebars/topology/TopologySidebar.js
@@ -1,14 +1,12 @@
-import {connect} from "react-redux";
+import { connect } from "react-redux";
import TopologySidebarComponent from "../../../../components/app/sidebars/topology/TopologySidebarComponent";
const mapStateToProps = state => {
- return {
- interactionLevel: state.interactionLevel
- };
+ return {
+ interactionLevel: state.interactionLevel
+ };
};
-const TopologySidebar = connect(
- mapStateToProps
-)(TopologySidebarComponent);
+const TopologySidebar = connect(mapStateToProps)(TopologySidebarComponent);
export default TopologySidebar;
diff --git a/src/containers/app/sidebars/topology/building/BuildingSidebarContainer.js b/src/containers/app/sidebars/topology/building/BuildingSidebarContainer.js
index ce7a308a..da24b8f0 100644
--- a/src/containers/app/sidebars/topology/building/BuildingSidebarContainer.js
+++ b/src/containers/app/sidebars/topology/building/BuildingSidebarContainer.js
@@ -1,14 +1,14 @@
-import {connect} from "react-redux";
+import { connect } from "react-redux";
import BuildingSidebarComponent from "../../../../../components/app/sidebars/topology/building/BuildingSidebarComponent";
const mapStateToProps = state => {
- return {
- inSimulation: state.currentExperimentId !== -1
- };
+ return {
+ inSimulation: state.currentExperimentId !== -1
+ };
};
-const BuildingSidebarContainer = connect(
- mapStateToProps
-)(BuildingSidebarComponent);
+const BuildingSidebarContainer = connect(mapStateToProps)(
+ BuildingSidebarComponent
+);
export default BuildingSidebarContainer;
diff --git a/src/containers/app/sidebars/topology/building/NewRoomConstructionContainer.js b/src/containers/app/sidebars/topology/building/NewRoomConstructionContainer.js
index 3ec1349b..bb64cbb4 100644
--- a/src/containers/app/sidebars/topology/building/NewRoomConstructionContainer.js
+++ b/src/containers/app/sidebars/topology/building/NewRoomConstructionContainer.js
@@ -1,28 +1,27 @@
-import {connect} from "react-redux";
+import { connect } from "react-redux";
import {
- cancelNewRoomConstruction,
- finishNewRoomConstruction,
- startNewRoomConstruction
+ cancelNewRoomConstruction,
+ finishNewRoomConstruction,
+ startNewRoomConstruction
} from "../../../../../actions/topology/building";
import StartNewRoomConstructionComponent from "../../../../../components/app/sidebars/topology/building/NewRoomConstructionComponent";
const mapStateToProps = state => {
- return {
- currentRoomInConstruction: state.construction.currentRoomInConstruction
- };
+ return {
+ currentRoomInConstruction: state.construction.currentRoomInConstruction
+ };
};
const mapDispatchToProps = dispatch => {
- return {
- onStart: () => dispatch(startNewRoomConstruction()),
- onFinish: () => dispatch(finishNewRoomConstruction()),
- onCancel: () => dispatch(cancelNewRoomConstruction()),
- };
+ return {
+ onStart: () => dispatch(startNewRoomConstruction()),
+ onFinish: () => dispatch(finishNewRoomConstruction()),
+ onCancel: () => dispatch(cancelNewRoomConstruction())
+ };
};
-const NewRoomConstructionButton = connect(
- mapStateToProps,
- mapDispatchToProps
-)(StartNewRoomConstructionComponent);
+const NewRoomConstructionButton = connect(mapStateToProps, mapDispatchToProps)(
+ StartNewRoomConstructionComponent
+);
export default NewRoomConstructionButton;
diff --git a/src/containers/app/sidebars/topology/machine/BackToRackContainer.js b/src/containers/app/sidebars/topology/machine/BackToRackContainer.js
index f0ac9220..885c533d 100644
--- a/src/containers/app/sidebars/topology/machine/BackToRackContainer.js
+++ b/src/containers/app/sidebars/topology/machine/BackToRackContainer.js
@@ -1,16 +1,15 @@
-import {connect} from "react-redux";
-import {goDownOneInteractionLevel} from "../../../../../actions/interaction-level";
+import { connect } from "react-redux";
+import { goDownOneInteractionLevel } from "../../../../../actions/interaction-level";
import BackToRackComponent from "../../../../../components/app/sidebars/topology/machine/BackToRackComponent";
const mapDispatchToProps = dispatch => {
- return {
- onClick: () => dispatch(goDownOneInteractionLevel()),
- };
+ return {
+ onClick: () => dispatch(goDownOneInteractionLevel())
+ };
};
-const BackToRackContainer = connect(
- undefined,
- mapDispatchToProps
-)(BackToRackComponent);
+const BackToRackContainer = connect(undefined, mapDispatchToProps)(
+ BackToRackComponent
+);
export default BackToRackContainer;
diff --git a/src/containers/app/sidebars/topology/machine/DeleteMachineContainer.js b/src/containers/app/sidebars/topology/machine/DeleteMachineContainer.js
index bfdde179..f42c8ba7 100644
--- a/src/containers/app/sidebars/topology/machine/DeleteMachineContainer.js
+++ b/src/containers/app/sidebars/topology/machine/DeleteMachineContainer.js
@@ -1,16 +1,15 @@
-import {connect} from "react-redux";
-import {openDeleteMachineModal} from "../../../../../actions/modals/topology";
+import { connect } from "react-redux";
+import { openDeleteMachineModal } from "../../../../../actions/modals/topology";
import DeleteMachineComponent from "../../../../../components/app/sidebars/topology/machine/DeleteMachineComponent";
const mapDispatchToProps = dispatch => {
- return {
- onClick: () => dispatch(openDeleteMachineModal()),
- };
+ return {
+ onClick: () => dispatch(openDeleteMachineModal())
+ };
};
-const DeleteMachineContainer = connect(
- undefined,
- mapDispatchToProps
-)(DeleteMachineComponent);
+const DeleteMachineContainer = connect(undefined, mapDispatchToProps)(
+ DeleteMachineComponent
+);
export default DeleteMachineContainer;
diff --git a/src/containers/app/sidebars/topology/machine/MachineNameContainer.js b/src/containers/app/sidebars/topology/machine/MachineNameContainer.js
index 9d23dcb6..05d2bf80 100644
--- a/src/containers/app/sidebars/topology/machine/MachineNameContainer.js
+++ b/src/containers/app/sidebars/topology/machine/MachineNameContainer.js
@@ -1,14 +1,12 @@
-import {connect} from "react-redux";
+import { connect } from "react-redux";
import MachineNameComponent from "../../../../../components/app/sidebars/topology/machine/MachineNameComponent";
const mapStateToProps = state => {
- return {
- position: state.interactionLevel.position,
- };
+ return {
+ position: state.interactionLevel.position
+ };
};
-const MachineNameContainer = connect(
- mapStateToProps
-)(MachineNameComponent);
+const MachineNameContainer = connect(mapStateToProps)(MachineNameComponent);
export default MachineNameContainer;
diff --git a/src/containers/app/sidebars/topology/machine/MachineSidebarContainer.js b/src/containers/app/sidebars/topology/machine/MachineSidebarContainer.js
index 5c28248c..7729385e 100644
--- a/src/containers/app/sidebars/topology/machine/MachineSidebarContainer.js
+++ b/src/containers/app/sidebars/topology/machine/MachineSidebarContainer.js
@@ -1,16 +1,18 @@
-import {connect} from "react-redux";
+import { connect } from "react-redux";
import MachineSidebarComponent from "../../../../../components/app/sidebars/topology/machine/MachineSidebarComponent";
const mapStateToProps = state => {
- return {
- inSimulation: state.currentExperimentId !== -1,
- machineId: state.objects.rack[state.objects.tile[state.interactionLevel.tileId].objectId]
- .machineIds[state.interactionLevel.position - 1],
- };
+ return {
+ inSimulation: state.currentExperimentId !== -1,
+ machineId:
+ state.objects.rack[
+ state.objects.tile[state.interactionLevel.tileId].objectId
+ ].machineIds[state.interactionLevel.position - 1]
+ };
};
-const MachineSidebarContainer = connect(
- mapStateToProps
-)(MachineSidebarComponent);
+const MachineSidebarContainer = connect(mapStateToProps)(
+ MachineSidebarComponent
+);
export default MachineSidebarContainer;
diff --git a/src/containers/app/sidebars/topology/machine/UnitAddContainer.js b/src/containers/app/sidebars/topology/machine/UnitAddContainer.js
index f194ebcf..0e5a6073 100644
--- a/src/containers/app/sidebars/topology/machine/UnitAddContainer.js
+++ b/src/containers/app/sidebars/topology/machine/UnitAddContainer.js
@@ -1,22 +1,21 @@
-import {connect} from "react-redux";
-import {addUnit} from "../../../../../actions/topology/machine";
+import { connect } from "react-redux";
+import { addUnit } from "../../../../../actions/topology/machine";
import UnitAddComponent from "../../../../../components/app/sidebars/topology/machine/UnitAddComponent";
const mapStateToProps = (state, ownProps) => {
- return {
- units: Object.values(state.objects[ownProps.unitType]),
- };
+ return {
+ units: Object.values(state.objects[ownProps.unitType])
+ };
};
const mapDispatchToProps = (dispatch, ownProps) => {
- return {
- onAdd: (id) => dispatch(addUnit(ownProps.unitType, id)),
- };
+ return {
+ onAdd: id => dispatch(addUnit(ownProps.unitType, id))
+ };
};
-const UnitAddContainer = connect(
- mapStateToProps,
- mapDispatchToProps
-)(UnitAddComponent);
+const UnitAddContainer = connect(mapStateToProps, mapDispatchToProps)(
+ UnitAddComponent
+);
export default UnitAddContainer;
diff --git a/src/containers/app/sidebars/topology/machine/UnitContainer.js b/src/containers/app/sidebars/topology/machine/UnitContainer.js
index 12024d5a..a919e8d3 100644
--- a/src/containers/app/sidebars/topology/machine/UnitContainer.js
+++ b/src/containers/app/sidebars/topology/machine/UnitContainer.js
@@ -1,23 +1,22 @@
-import {connect} from "react-redux";
-import {deleteUnit} from "../../../../../actions/topology/machine";
+import { connect } from "react-redux";
+import { deleteUnit } from "../../../../../actions/topology/machine";
import UnitComponent from "../../../../../components/app/sidebars/topology/machine/UnitComponent";
const mapStateToProps = (state, ownProps) => {
- return {
- unit: state.objects[ownProps.unitType][ownProps.unitId],
- inSimulation: state.currentExperimentId !== -1
- };
+ return {
+ unit: state.objects[ownProps.unitType][ownProps.unitId],
+ inSimulation: state.currentExperimentId !== -1
+ };
};
const mapDispatchToProps = (dispatch, ownProps) => {
- return {
- onDelete: () => dispatch(deleteUnit(ownProps.unitType, ownProps.index)),
- };
+ return {
+ onDelete: () => dispatch(deleteUnit(ownProps.unitType, ownProps.index))
+ };
};
-const UnitContainer = connect(
- mapStateToProps,
- mapDispatchToProps
-)(UnitComponent);
+const UnitContainer = connect(mapStateToProps, mapDispatchToProps)(
+ UnitComponent
+);
export default UnitContainer;
diff --git a/src/containers/app/sidebars/topology/machine/UnitListContainer.js b/src/containers/app/sidebars/topology/machine/UnitListContainer.js
index e351c63c..6554b8f8 100644
--- a/src/containers/app/sidebars/topology/machine/UnitListContainer.js
+++ b/src/containers/app/sidebars/topology/machine/UnitListContainer.js
@@ -1,16 +1,18 @@
-import {connect} from "react-redux";
+import { connect } from "react-redux";
import UnitListComponent from "../../../../../components/app/sidebars/topology/machine/UnitListComponent";
const mapStateToProps = (state, ownProps) => {
- return {
- unitIds: state.objects.machine[state.objects.rack[state.objects.tile[state.interactionLevel.tileId].objectId]
- .machineIds[state.interactionLevel.position - 1]][ownProps.unitType + "Ids"],
- inSimulation: state.currentExperimentId !== -1
- };
+ return {
+ unitIds:
+ state.objects.machine[
+ state.objects.rack[
+ state.objects.tile[state.interactionLevel.tileId].objectId
+ ].machineIds[state.interactionLevel.position - 1]
+ ][ownProps.unitType + "Ids"],
+ inSimulation: state.currentExperimentId !== -1
+ };
};
-const UnitListContainer = connect(
- mapStateToProps
-)(UnitListComponent);
+const UnitListContainer = connect(mapStateToProps)(UnitListComponent);
export default UnitListContainer;
diff --git a/src/containers/app/sidebars/topology/machine/UnitTabsContainer.js b/src/containers/app/sidebars/topology/machine/UnitTabsContainer.js
index 46952c74..85d83877 100644
--- a/src/containers/app/sidebars/topology/machine/UnitTabsContainer.js
+++ b/src/containers/app/sidebars/topology/machine/UnitTabsContainer.js
@@ -1,14 +1,12 @@
-import {connect} from "react-redux";
+import { connect } from "react-redux";
import UnitTabsComponent from "../../../../../components/app/sidebars/topology/machine/UnitTabsComponent";
const mapStateToProps = state => {
- return {
- inSimulation: state.currentExperimentId !== -1,
- };
+ return {
+ inSimulation: state.currentExperimentId !== -1
+ };
};
-const UnitTabsContainer = connect(
- mapStateToProps
-)(UnitTabsComponent);
+const UnitTabsContainer = connect(mapStateToProps)(UnitTabsComponent);
export default UnitTabsContainer;
diff --git a/src/containers/app/sidebars/topology/rack/BackToRoomContainer.js b/src/containers/app/sidebars/topology/rack/BackToRoomContainer.js
index 01653540..1b1bb2b0 100644
--- a/src/containers/app/sidebars/topology/rack/BackToRoomContainer.js
+++ b/src/containers/app/sidebars/topology/rack/BackToRoomContainer.js
@@ -1,16 +1,15 @@
-import {connect} from "react-redux";
-import {goDownOneInteractionLevel} from "../../../../../actions/interaction-level";
+import { connect } from "react-redux";
+import { goDownOneInteractionLevel } from "../../../../../actions/interaction-level";
import BackToRoomComponent from "../../../../../components/app/sidebars/topology/rack/BackToRoomComponent";
const mapDispatchToProps = dispatch => {
- return {
- onClick: () => dispatch(goDownOneInteractionLevel()),
- };
+ return {
+ onClick: () => dispatch(goDownOneInteractionLevel())
+ };
};
-const BackToRoomContainer = connect(
- undefined,
- mapDispatchToProps
-)(BackToRoomComponent);
+const BackToRoomContainer = connect(undefined, mapDispatchToProps)(
+ BackToRoomComponent
+);
export default BackToRoomContainer;
diff --git a/src/containers/app/sidebars/topology/rack/DeleteRackContainer.js b/src/containers/app/sidebars/topology/rack/DeleteRackContainer.js
index cf225558..a54ceb23 100644
--- a/src/containers/app/sidebars/topology/rack/DeleteRackContainer.js
+++ b/src/containers/app/sidebars/topology/rack/DeleteRackContainer.js
@@ -1,16 +1,15 @@
-import {connect} from "react-redux";
-import {openDeleteRackModal} from "../../../../../actions/modals/topology";
+import { connect } from "react-redux";
+import { openDeleteRackModal } from "../../../../../actions/modals/topology";
import DeleteRackComponent from "../../../../../components/app/sidebars/topology/rack/DeleteRackComponent";
const mapDispatchToProps = dispatch => {
- return {
- onClick: () => dispatch(openDeleteRackModal()),
- };
+ return {
+ onClick: () => dispatch(openDeleteRackModal())
+ };
};
-const DeleteRackContainer = connect(
- undefined,
- mapDispatchToProps
-)(DeleteRackComponent);
+const DeleteRackContainer = connect(undefined, mapDispatchToProps)(
+ DeleteRackComponent
+);
export default DeleteRackContainer;
diff --git a/src/containers/app/sidebars/topology/rack/EmptySlotContainer.js b/src/containers/app/sidebars/topology/rack/EmptySlotContainer.js
index b8f5e553..527805a2 100644
--- a/src/containers/app/sidebars/topology/rack/EmptySlotContainer.js
+++ b/src/containers/app/sidebars/topology/rack/EmptySlotContainer.js
@@ -1,22 +1,21 @@
-import {connect} from "react-redux";
-import {addMachine} from "../../../../../actions/topology/rack";
+import { connect } from "react-redux";
+import { addMachine } from "../../../../../actions/topology/rack";
import EmptySlotComponent from "../../../../../components/app/sidebars/topology/rack/EmptySlotComponent";
const mapStateToProps = state => {
- return {
- inSimulation: state.currentExperimentId !== -1
- };
+ return {
+ inSimulation: state.currentExperimentId !== -1
+ };
};
const mapDispatchToProps = (dispatch, ownProps) => {
- return {
- onAdd: () => dispatch(addMachine(ownProps.position)),
- };
+ return {
+ onAdd: () => dispatch(addMachine(ownProps.position))
+ };
};
-const EmptySlotContainer = connect(
- mapStateToProps,
- mapDispatchToProps
-)(EmptySlotComponent);
+const EmptySlotContainer = connect(mapStateToProps, mapDispatchToProps)(
+ EmptySlotComponent
+);
export default EmptySlotContainer;
diff --git a/src/containers/app/sidebars/topology/rack/MachineContainer.js b/src/containers/app/sidebars/topology/rack/MachineContainer.js
index cd15ddd0..8cd177e7 100644
--- a/src/containers/app/sidebars/topology/rack/MachineContainer.js
+++ b/src/containers/app/sidebars/topology/rack/MachineContainer.js
@@ -1,35 +1,40 @@
-import {connect} from "react-redux";
-import {goFromRackToMachine} from "../../../../../actions/interaction-level";
+import { connect } from "react-redux";
+import { goFromRackToMachine } from "../../../../../actions/interaction-level";
import MachineComponent from "../../../../../components/app/sidebars/topology/rack/MachineComponent";
-import {getStateLoad} from "../../../../../util/simulation-load";
+import { getStateLoad } from "../../../../../util/simulation-load";
const mapStateToProps = (state, ownProps) => {
- const machine = state.objects.machine[ownProps.machineId];
- const inSimulation = state.currentExperimentId !== -1;
+ const machine = state.objects.machine[ownProps.machineId];
+ const inSimulation = state.currentExperimentId !== -1;
- let machineLoad = undefined;
- if (inSimulation) {
- if (state.states.machine[state.currentTick] && state.states.machine[state.currentTick][machine.id]) {
- machineLoad = getStateLoad(state.loadMetric, state.states.machine[state.currentTick][machine.id]);
- }
+ let machineLoad = undefined;
+ if (inSimulation) {
+ if (
+ state.states.machine[state.currentTick] &&
+ state.states.machine[state.currentTick][machine.id]
+ ) {
+ machineLoad = getStateLoad(
+ state.loadMetric,
+ state.states.machine[state.currentTick][machine.id]
+ );
}
+ }
- return {
- machine,
- inSimulation,
- machineLoad
- };
+ return {
+ machine,
+ inSimulation,
+ machineLoad
+ };
};
const mapDispatchToProps = (dispatch, ownProps) => {
- return {
- onClick: () => dispatch(goFromRackToMachine(ownProps.position)),
- };
+ return {
+ onClick: () => dispatch(goFromRackToMachine(ownProps.position))
+ };
};
-const MachineContainer = connect(
- mapStateToProps,
- mapDispatchToProps
-)(MachineComponent);
+const MachineContainer = connect(mapStateToProps, mapDispatchToProps)(
+ MachineComponent
+);
export default MachineContainer;
diff --git a/src/containers/app/sidebars/topology/rack/MachineListContainer.js b/src/containers/app/sidebars/topology/rack/MachineListContainer.js
index dbedfbb2..b19a50ae 100644
--- a/src/containers/app/sidebars/topology/rack/MachineListContainer.js
+++ b/src/containers/app/sidebars/topology/rack/MachineListContainer.js
@@ -1,14 +1,15 @@
-import {connect} from "react-redux";
+import { connect } from "react-redux";
import MachineListComponent from "../../../../../components/app/sidebars/topology/rack/MachineListComponent";
const mapStateToProps = state => {
- return {
- machineIds: state.objects.rack[state.objects.tile[state.interactionLevel.tileId].objectId].machineIds,
- };
+ return {
+ machineIds:
+ state.objects.rack[
+ state.objects.tile[state.interactionLevel.tileId].objectId
+ ].machineIds
+ };
};
-const MachineListContainer = connect(
- mapStateToProps
-)(MachineListComponent);
+const MachineListContainer = connect(mapStateToProps)(MachineListComponent);
export default MachineListContainer;
diff --git a/src/containers/app/sidebars/topology/rack/RackNameContainer.js b/src/containers/app/sidebars/topology/rack/RackNameContainer.js
index 49a58155..8f364ca0 100644
--- a/src/containers/app/sidebars/topology/rack/RackNameContainer.js
+++ b/src/containers/app/sidebars/topology/rack/RackNameContainer.js
@@ -1,22 +1,24 @@
-import {connect} from "react-redux";
-import {openEditRackNameModal} from "../../../../../actions/modals/topology";
+import { connect } from "react-redux";
+import { openEditRackNameModal } from "../../../../../actions/modals/topology";
import RackNameComponent from "../../../../../components/app/sidebars/topology/rack/RackNameComponent";
const mapStateToProps = state => {
- return {
- rackName: state.objects.rack[state.objects.tile[state.interactionLevel.tileId].objectId].name,
- };
+ return {
+ rackName:
+ state.objects.rack[
+ state.objects.tile[state.interactionLevel.tileId].objectId
+ ].name
+ };
};
const mapDispatchToProps = dispatch => {
- return {
- onEdit: () => dispatch(openEditRackNameModal()),
- };
+ return {
+ onEdit: () => dispatch(openEditRackNameModal())
+ };
};
-const RackNameContainer = connect(
- mapStateToProps,
- mapDispatchToProps
-)(RackNameComponent);
+const RackNameContainer = connect(mapStateToProps, mapDispatchToProps)(
+ RackNameComponent
+);
export default RackNameContainer;
diff --git a/src/containers/app/sidebars/topology/rack/RackSidebarContainer.js b/src/containers/app/sidebars/topology/rack/RackSidebarContainer.js
index ba51ee4a..0a2bfdcc 100644
--- a/src/containers/app/sidebars/topology/rack/RackSidebarContainer.js
+++ b/src/containers/app/sidebars/topology/rack/RackSidebarContainer.js
@@ -1,15 +1,13 @@
-import {connect} from "react-redux";
+import { connect } from "react-redux";
import RackSidebarComponent from "../../../../../components/app/sidebars/topology/rack/RackSidebarComponent";
const mapStateToProps = state => {
- return {
- rackId: state.objects.tile[state.interactionLevel.tileId].objectId,
- inSimulation: state.currentExperimentId !== -1,
- };
+ return {
+ rackId: state.objects.tile[state.interactionLevel.tileId].objectId,
+ inSimulation: state.currentExperimentId !== -1
+ };
};
-const RackSidebarContainer = connect(
- mapStateToProps
-)(RackSidebarComponent);
+const RackSidebarContainer = connect(mapStateToProps)(RackSidebarComponent);
export default RackSidebarContainer;
diff --git a/src/containers/app/sidebars/topology/room/BackToBuildingContainer.js b/src/containers/app/sidebars/topology/room/BackToBuildingContainer.js
index a6366552..02288b7b 100644
--- a/src/containers/app/sidebars/topology/room/BackToBuildingContainer.js
+++ b/src/containers/app/sidebars/topology/room/BackToBuildingContainer.js
@@ -1,16 +1,15 @@
-import {connect} from "react-redux";
-import {goDownOneInteractionLevel} from "../../../../../actions/interaction-level";
+import { connect } from "react-redux";
+import { goDownOneInteractionLevel } from "../../../../../actions/interaction-level";
import BackToBuildingComponent from "../../../../../components/app/sidebars/topology/room/BackToBuildingComponent";
const mapDispatchToProps = dispatch => {
- return {
- onClick: () => dispatch(goDownOneInteractionLevel()),
- };
+ return {
+ onClick: () => dispatch(goDownOneInteractionLevel())
+ };
};
-const BackToBuildingContainer = connect(
- undefined,
- mapDispatchToProps
-)(BackToBuildingComponent);
+const BackToBuildingContainer = connect(undefined, mapDispatchToProps)(
+ BackToBuildingComponent
+);
export default BackToBuildingContainer;
diff --git a/src/containers/app/sidebars/topology/room/DeleteRoomContainer.js b/src/containers/app/sidebars/topology/room/DeleteRoomContainer.js
index 0c9aef1c..5223061d 100644
--- a/src/containers/app/sidebars/topology/room/DeleteRoomContainer.js
+++ b/src/containers/app/sidebars/topology/room/DeleteRoomContainer.js
@@ -1,16 +1,15 @@
-import {connect} from "react-redux";
-import {openDeleteRoomModal} from "../../../../../actions/modals/topology";
+import { connect } from "react-redux";
+import { openDeleteRoomModal } from "../../../../../actions/modals/topology";
import DeleteRoomComponent from "../../../../../components/app/sidebars/topology/room/DeleteRoomComponent";
const mapDispatchToProps = dispatch => {
- return {
- onClick: () => dispatch(openDeleteRoomModal()),
- };
+ return {
+ onClick: () => dispatch(openDeleteRoomModal())
+ };
};
-const DeleteRoomContainer = connect(
- undefined,
- mapDispatchToProps
-)(DeleteRoomComponent);
+const DeleteRoomContainer = connect(undefined, mapDispatchToProps)(
+ DeleteRoomComponent
+);
export default DeleteRoomContainer;
diff --git a/src/containers/app/sidebars/topology/room/RackConstructionContainer.js b/src/containers/app/sidebars/topology/room/RackConstructionContainer.js
index f06a3ab2..0fc22b09 100644
--- a/src/containers/app/sidebars/topology/room/RackConstructionContainer.js
+++ b/src/containers/app/sidebars/topology/room/RackConstructionContainer.js
@@ -1,23 +1,25 @@
-import {connect} from "react-redux";
-import {startRackConstruction, stopRackConstruction} from "../../../../../actions/topology/room";
+import { connect } from "react-redux";
+import {
+ startRackConstruction,
+ stopRackConstruction
+} from "../../../../../actions/topology/room";
import RackConstructionComponent from "../../../../../components/app/sidebars/topology/room/RackConstructionComponent";
const mapStateToProps = state => {
- return {
- inRackConstructionMode: state.construction.inRackConstructionMode,
- };
+ return {
+ inRackConstructionMode: state.construction.inRackConstructionMode
+ };
};
const mapDispatchToProps = dispatch => {
- return {
- onStart: () => dispatch(startRackConstruction()),
- onStop: () => dispatch(stopRackConstruction()),
- };
+ return {
+ onStart: () => dispatch(startRackConstruction()),
+ onStop: () => dispatch(stopRackConstruction())
+ };
};
-const RackConstructionContainer = connect(
- mapStateToProps,
- mapDispatchToProps
-)(RackConstructionComponent);
+const RackConstructionContainer = connect(mapStateToProps, mapDispatchToProps)(
+ RackConstructionComponent
+);
export default RackConstructionContainer;
diff --git a/src/containers/app/sidebars/topology/room/RoomNameContainer.js b/src/containers/app/sidebars/topology/room/RoomNameContainer.js
index c1f7f397..36125521 100644
--- a/src/containers/app/sidebars/topology/room/RoomNameContainer.js
+++ b/src/containers/app/sidebars/topology/room/RoomNameContainer.js
@@ -1,22 +1,21 @@
-import {connect} from "react-redux";
-import {openEditRoomNameModal} from "../../../../../actions/modals/topology";
+import { connect } from "react-redux";
+import { openEditRoomNameModal } from "../../../../../actions/modals/topology";
import RoomNameComponent from "../../../../../components/app/sidebars/topology/room/RoomNameComponent";
const mapStateToProps = state => {
- return {
- roomName: state.objects.room[state.interactionLevel.roomId].name,
- };
+ return {
+ roomName: state.objects.room[state.interactionLevel.roomId].name
+ };
};
const mapDispatchToProps = dispatch => {
- return {
- onEdit: () => dispatch(openEditRoomNameModal()),
- };
+ return {
+ onEdit: () => dispatch(openEditRoomNameModal())
+ };
};
-const RoomNameContainer = connect(
- mapStateToProps,
- mapDispatchToProps
-)(RoomNameComponent);
+const RoomNameContainer = connect(mapStateToProps, mapDispatchToProps)(
+ RoomNameComponent
+);
export default RoomNameContainer;
diff --git a/src/containers/app/sidebars/topology/room/RoomSidebarContainer.js b/src/containers/app/sidebars/topology/room/RoomSidebarContainer.js
index 6371e6a1..38d5fb80 100644
--- a/src/containers/app/sidebars/topology/room/RoomSidebarContainer.js
+++ b/src/containers/app/sidebars/topology/room/RoomSidebarContainer.js
@@ -1,16 +1,14 @@
-import {connect} from "react-redux";
+import { connect } from "react-redux";
import RoomSidebarComponent from "../../../../../components/app/sidebars/topology/room/RoomSidebarComponent";
const mapStateToProps = state => {
- return {
- roomId: state.interactionLevel.roomId,
- roomType: state.objects.room[state.interactionLevel.roomId].roomType,
- inSimulation: state.currentExperimentId !== -1,
- };
+ return {
+ roomId: state.interactionLevel.roomId,
+ roomType: state.objects.room[state.interactionLevel.roomId].roomType,
+ inSimulation: state.currentExperimentId !== -1
+ };
};
-const RoomSidebarContainer = connect(
- mapStateToProps
-)(RoomSidebarComponent);
+const RoomSidebarContainer = connect(mapStateToProps)(RoomSidebarComponent);
export default RoomSidebarContainer;
diff --git a/src/containers/app/sidebars/topology/room/RoomTypeContainer.js b/src/containers/app/sidebars/topology/room/RoomTypeContainer.js
index 8cc1126a..414852f1 100644
--- a/src/containers/app/sidebars/topology/room/RoomTypeContainer.js
+++ b/src/containers/app/sidebars/topology/room/RoomTypeContainer.js
@@ -1,14 +1,12 @@
-import {connect} from "react-redux";
+import { connect } from "react-redux";
import RoomTypeComponent from "../../../../../components/app/sidebars/topology/room/RoomTypeComponent";
const mapStateToProps = state => {
- return {
- roomType: state.objects.room[state.interactionLevel.roomId].roomType,
- };
+ return {
+ roomType: state.objects.room[state.interactionLevel.roomId].roomType
+ };
};
-const RoomNameContainer = connect(
- mapStateToProps
-)(RoomTypeComponent);
+const RoomNameContainer = connect(mapStateToProps)(RoomTypeComponent);
export default RoomNameContainer;