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/MachineContainer.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/containers/sidebars/topology/rack/MachineContainer.js (limited to 'src/containers/sidebars/topology/rack/MachineContainer.js') diff --git a/src/containers/sidebars/topology/rack/MachineContainer.js b/src/containers/sidebars/topology/rack/MachineContainer.js new file mode 100644 index 00000000..74a0bfbc --- /dev/null +++ b/src/containers/sidebars/topology/rack/MachineContainer.js @@ -0,0 +1,21 @@ +import {connect} from "react-redux"; +import MachineComponent from "../../../../components/sidebars/topology/rack/MachineComponent"; + +const mapStateToProps = (state, ownProps) => { + return { + machine: state.objects.machine[ownProps.machineId], + }; +}; + +const mapDispatchToProps = dispatch => { + return { + onClick: () => undefined, // TODO implement transition to MACHINE mode + }; +}; + +const MachineContainer = connect( + mapStateToProps, + mapDispatchToProps +)(MachineComponent); + +export default MachineContainer; -- cgit v1.2.3