diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-08-25 19:52:55 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-08-25 19:52:55 +0200 |
commit | 44e57f64dd8b00900c31d7fd56fda94f4e69e986 (patch) | |
tree | 346179141ed8710b4593a36f0b6524589ab884cd /app/assets/javascripts/components/containers/composer_drawer_container.jsx | |
parent | f5e1127894e74f21a774569bf6afc1e87a84fa2f (diff) |
Improving statuses, adding a composer drawer, which doesn't work yet
Diffstat (limited to 'app/assets/javascripts/components/containers/composer_drawer_container.jsx')
-rw-r--r-- | app/assets/javascripts/components/containers/composer_drawer_container.jsx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/containers/composer_drawer_container.jsx b/app/assets/javascripts/components/containers/composer_drawer_container.jsx new file mode 100644 index 000000000..4ec0f1c50 --- /dev/null +++ b/app/assets/javascripts/components/containers/composer_drawer_container.jsx @@ -0,0 +1,17 @@ +import { connect } from 'react-redux'; +import ComposerDrawer from '../components/composer_drawer'; +import { publish } from '../actions/statuses'; + +const mapStateToProps = function (state, props) { + return {}; +}; + +const mapDispatchToProps = function (dispatch) { + return { + onSubmit: function (text, in_reply_to_id) { + dispatch(publish(text, in_reply_to_id)); + } + } +}; + +export default connect(mapStateToProps, mapDispatchToProps)(ComposerDrawer); |