summaryrefslogtreecommitdiff
path: root/src/containers/sidebars/topology/rack/MachineContainer.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers/sidebars/topology/rack/MachineContainer.js')
-rw-r--r--src/containers/sidebars/topology/rack/MachineContainer.js21
1 files changed, 21 insertions, 0 deletions
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;