summaryrefslogtreecommitdiff
path: root/src/containers/app/sidebars/topology/rack/EmptySlotContainer.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers/app/sidebars/topology/rack/EmptySlotContainer.js')
-rw-r--r--src/containers/app/sidebars/topology/rack/EmptySlotContainer.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/containers/app/sidebars/topology/rack/EmptySlotContainer.js b/src/containers/app/sidebars/topology/rack/EmptySlotContainer.js
deleted file mode 100644
index 527805a2..00000000
--- a/src/containers/app/sidebars/topology/rack/EmptySlotContainer.js
+++ /dev/null
@@ -1,21 +0,0 @@
-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
- };
-};
-
-const mapDispatchToProps = (dispatch, ownProps) => {
- return {
- onAdd: () => dispatch(addMachine(ownProps.position))
- };
-};
-
-const EmptySlotContainer = connect(mapStateToProps, mapDispatchToProps)(
- EmptySlotComponent
-);
-
-export default EmptySlotContainer;