about summary refs log tree commit diff
path: root/app/assets/javascripts/components/containers/navigation_container.jsx
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-13 02:24:40 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-13 02:24:40 +0200
commit2e7aac793ace0e938e45cb54ff601afa5d872214 (patch)
tree5c45c25a21ef9b1068604b8c459e1855ba91f239 /app/assets/javascripts/components/containers/navigation_container.jsx
parentd6a64f45fd4530cfee4f7721f0c6e7ca28fe677f (diff)
Adding sense of self to the UI, cleaning up routing, adding third (detail) column
Diffstat (limited to 'app/assets/javascripts/components/containers/navigation_container.jsx')
-rw-r--r--app/assets/javascripts/components/containers/navigation_container.jsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/containers/navigation_container.jsx b/app/assets/javascripts/components/containers/navigation_container.jsx
new file mode 100644
index 000000000..4aeea4c37
--- /dev/null
+++ b/app/assets/javascripts/components/containers/navigation_container.jsx
@@ -0,0 +1,8 @@
+import { connect }   from 'react-redux';
+import NavigationBar from '../components/navigation_bar';
+
+const mapStateToProps = (state, props) => ({
+  account: state.getIn(['timelines', 'accounts', state.getIn(['timelines', 'me'])])
+});
+
+export default connect(mapStateToProps)(NavigationBar);