From e9909159dc5db91eda12437e18c1474cae848af7 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Thu, 7 Sep 2017 11:38:42 +0200 Subject: Implement first machine slot listing --- .../sidebars/topology/rack/EmptySlotContainer.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/containers/sidebars/topology/rack/EmptySlotContainer.js (limited to 'src/containers/sidebars/topology/rack/EmptySlotContainer.js') 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; -- cgit v1.2.3