diff options
Diffstat (limited to 'app/assets/javascripts/components/containers/status_list_container.jsx')
-rw-r--r-- | app/assets/javascripts/components/containers/status_list_container.jsx | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/app/assets/javascripts/components/containers/status_list_container.jsx b/app/assets/javascripts/components/containers/status_list_container.jsx index bbf8a8876..9cdd7f4c2 100644 --- a/app/assets/javascripts/components/containers/status_list_container.jsx +++ b/app/assets/javascripts/components/containers/status_list_container.jsx @@ -1,5 +1,6 @@ -import { connect } from 'react-redux'; -import StatusList from '../components/status_list'; +import { connect } from 'react-redux'; +import StatusList from '../components/status_list'; +import { replyCompose } from '../actions/compose'; const mapStateToProps = function (state, props) { return { @@ -7,4 +8,12 @@ const mapStateToProps = function (state, props) { }; }; -export default connect(mapStateToProps)(StatusList); +const mapDispatchToProps = function (dispatch) { + return { + onReply: function (status) { + dispatch(replyCompose(status)); + } + }; +}; + +export default connect(mapStateToProps, mapDispatchToProps)(StatusList); |