From 44e57f64dd8b00900c31d7fd56fda94f4e69e986 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 25 Aug 2016 19:52:55 +0200 Subject: Improving statuses, adding a composer drawer, which doesn't work yet --- .../components/containers/composer_drawer_container.jsx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 app/assets/javascripts/components/containers/composer_drawer_container.jsx (limited to 'app/assets/javascripts/components/containers/composer_drawer_container.jsx') 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); -- cgit