diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-03 14:01:10 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-03 14:01:42 +0200 |
commit | d0e2733f63a7bd9601e73adee1107da804f85c41 (patch) | |
tree | 9268986d2ae72a55d84b9d9b90328fa58bb3bf98 /app/assets/javascripts/components/containers/composer_drawer_container.jsx | |
parent | f24cb32e99afdb9fa31067fb647912fec92e9ed4 (diff) |
Fix reblogs of reblogs in UI, add follow form in UI
Diffstat (limited to 'app/assets/javascripts/components/containers/composer_drawer_container.jsx')
-rw-r--r-- | app/assets/javascripts/components/containers/composer_drawer_container.jsx | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/app/assets/javascripts/components/containers/composer_drawer_container.jsx b/app/assets/javascripts/components/containers/composer_drawer_container.jsx deleted file mode 100644 index e9cef99b2..000000000 --- a/app/assets/javascripts/components/containers/composer_drawer_container.jsx +++ /dev/null @@ -1,29 +0,0 @@ -import { connect } from 'react-redux'; -import ComposerDrawer from '../components/composer_drawer'; -import { changeCompose, submitCompose, cancelReplyCompose } from '../actions/compose'; - -const mapStateToProps = function (state, props) { - return { - text: state.getIn(['compose', 'text']), - is_submitting: state.getIn(['compose', 'is_submitting']), - in_reply_to: state.getIn(['compose', 'in_reply_to']) - }; -}; - -const mapDispatchToProps = function (dispatch) { - return { - onChange: function (text) { - dispatch(changeCompose(text)); - }, - - onSubmit: function () { - dispatch(submitCompose()); - }, - - onCancelReply: function () { - dispatch(cancelReplyCompose()); - } - } -}; - -export default connect(mapStateToProps, mapDispatchToProps)(ComposerDrawer); |