about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/compose/containers
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-04-20 20:32:16 +0200
committerThibG <thib@sitedethib.com>2019-04-22 20:15:47 +0200
commit9a2f10fe8b24d48f0b7c5dde545b2df3c8952330 (patch)
tree1fda58b4d22e666134f322faa4e2bfd80762d04a /app/javascript/flavours/glitch/features/compose/containers
parent9b9816aba6c97eae9ea35698b185fe3deb3a870a (diff)
DrawerAccount → NavigationBar + NavigationContainer
Diffstat (limited to 'app/javascript/flavours/glitch/features/compose/containers')
-rw-r--r--app/javascript/flavours/glitch/features/compose/containers/navigation_container.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/features/compose/containers/navigation_container.js b/app/javascript/flavours/glitch/features/compose/containers/navigation_container.js
new file mode 100644
index 000000000..eb630ffbb
--- /dev/null
+++ b/app/javascript/flavours/glitch/features/compose/containers/navigation_container.js
@@ -0,0 +1,11 @@
+import { connect }   from 'react-redux';
+import NavigationBar from '../components/navigation_bar';
+import { me } from 'flavours/glitch/util/initial_state';
+
+const mapStateToProps = state => {
+  return {
+    account: state.getIn(['accounts', me]),
+  };
+};
+
+export default connect(mapStateToProps)(NavigationBar);