summaryrefslogtreecommitdiff
path: root/src/containers/sidebars/topology/rack/EmptySlotContainer.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers/sidebars/topology/rack/EmptySlotContainer.js')
-rw-r--r--src/containers/sidebars/topology/rack/EmptySlotContainer.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/containers/sidebars/topology/rack/EmptySlotContainer.js b/src/containers/sidebars/topology/rack/EmptySlotContainer.js
new file mode 100644
index 00000000..01ec6529
--- /dev/null
+++ b/src/containers/sidebars/topology/rack/EmptySlotContainer.js
@@ -0,0 +1,16 @@
+import {connect} from "react-redux";
+import {addMachine} from "../../../../actions/topology";
+import EmptySlotComponent from "../../../../components/sidebars/topology/rack/EmptySlotComponent";
+
+const mapDispatchToProps = (dispatch, ownProps) => {
+ return {
+ onAdd: () => dispatch(addMachine(ownProps.position)),
+ };
+};
+
+const EmptySlotContainer = connect(
+ undefined,
+ mapDispatchToProps
+)(EmptySlotComponent);
+
+export default EmptySlotContainer;