about summary refs log tree commit diff
path: root/app/assets/javascripts/components/features/ui/containers/follow_form_container.jsx
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-11-13 19:08:52 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-11-13 19:08:52 +0100
commit50d3083cbddf410e9024fb59559c46e9390a5662 (patch)
tree07cbb12ff6f018635a041ecd7f640995491af622 /app/assets/javascripts/components/features/ui/containers/follow_form_container.jsx
parentd42ed78aa432e448346f2b9585ee983e08631ba0 (diff)
Making upload button into a smaller icon button
Diffstat (limited to 'app/assets/javascripts/components/features/ui/containers/follow_form_container.jsx')
-rw-r--r--app/assets/javascripts/components/features/ui/containers/follow_form_container.jsx24
1 files changed, 0 insertions, 24 deletions
diff --git a/app/assets/javascripts/components/features/ui/containers/follow_form_container.jsx b/app/assets/javascripts/components/features/ui/containers/follow_form_container.jsx
deleted file mode 100644
index 05cfb7c1d..000000000
--- a/app/assets/javascripts/components/features/ui/containers/follow_form_container.jsx
+++ /dev/null
@@ -1,24 +0,0 @@
-import { connect }                    from 'react-redux';
-import FollowForm                     from '../components/follow_form';
-import { changeFollow, submitFollow } from '../../../actions/follow';
-
-const mapStateToProps = function (state, props) {
-  return {
-    text: state.getIn(['follow', 'text']),
-    is_submitting: state.getIn(['follow', 'is_submitting'])
-  };
-};
-
-const mapDispatchToProps = function (dispatch) {
-  return {
-    onChange: function (text) {
-      dispatch(changeFollow(text));
-    },
-
-    onSubmit: function (router) {
-      dispatch(submitFollow(router));
-    }
-  }
-};
-
-export default connect(mapStateToProps, mapDispatchToProps)(FollowForm);