diff options
author | Kibigo <marrus-sh@users.noreply.github.com> | 2017-03-01 02:56:15 -0800 |
---|---|---|
committer | Kibigo <marrus-sh@users.noreply.github.com> | 2017-03-01 02:56:15 -0800 |
commit | 91c79f2445a10d0f43254fc44656152ae88fd9cd (patch) | |
tree | ba9c49c90948cc02a9582279b2f1719757a25788 /app/assets/javascripts/components/features/compose/containers/compose_form_container.jsx | |
parent | e84c1dc95fbd23895e7abc34148750c35e90c4b2 (diff) |
Better smart/dumb component separation
Diffstat (limited to 'app/assets/javascripts/components/features/compose/containers/compose_form_container.jsx')
-rw-r--r-- | app/assets/javascripts/components/features/compose/containers/compose_form_container.jsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/features/compose/containers/compose_form_container.jsx b/app/assets/javascripts/components/features/compose/containers/compose_form_container.jsx index 53129af6e..a34201747 100644 --- a/app/assets/javascripts/components/features/compose/containers/compose_form_container.jsx +++ b/app/assets/javascripts/components/features/compose/containers/compose_form_container.jsx @@ -1,5 +1,6 @@ import { connect } from 'react-redux'; import ComposeForm from '../components/compose_form'; +import { uploadCompose } from '../../../actions/compose'; import { createSelector } from 'reselect'; import { changeCompose, @@ -65,6 +66,10 @@ const mapDispatchToProps = (dispatch) => ({ dispatch(changeComposeSpoilerText(checked)); }, + onPaste (files) { + dispatch(uploadCompose(files)); + }, + }); export default connect(mapStateToProps, mapDispatchToProps)(ComposeForm); |