diff options
author | Thibaut Girka <thib@sitedethib.com> | 2019-04-20 20:32:16 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2019-04-22 20:15:47 +0200 |
commit | 9a2f10fe8b24d48f0b7c5dde545b2df3c8952330 (patch) | |
tree | 1fda58b4d22e666134f322faa4e2bfd80762d04a /app/javascript/flavours/glitch/features/compose/containers | |
parent | 9b9816aba6c97eae9ea35698b185fe3deb3a870a (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.js | 11 |
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); |