From 49520d6e627e49a1f9f1b8cfa9b323450307fcc6 Mon Sep 17 00:00:00 2001
From: Eugen Rochko <eugen@zeonfederated.com>
Date: Wed, 24 Aug 2016 17:56:44 +0200
Subject: Adding React.js, Redux, revamping dashboard

---
 .../components/containers/status_list_container.jsx            | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 app/assets/javascripts/components/containers/status_list_container.jsx

(limited to 'app/assets/javascripts/components/containers/status_list_container.jsx')

diff --git a/app/assets/javascripts/components/containers/status_list_container.jsx b/app/assets/javascripts/components/containers/status_list_container.jsx
new file mode 100644
index 000000000..c2e55db66
--- /dev/null
+++ b/app/assets/javascripts/components/containers/status_list_container.jsx
@@ -0,0 +1,10 @@
+import { connect } from 'react-redux';
+import StatusList  from '../components/status_list';
+
+const mapStateToProps = function (state, props) {
+  return {
+    statuses: state.getIn(['statuses', props.type])
+  };
+};
+
+export default connect(mapStateToProps)(StatusList);
-- 
cgit 

