about summary refs log tree commit diff
path: root/app/assets/javascripts/components/features/follow_requests/containers
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/components/features/follow_requests/containers')
-rw-r--r--app/assets/javascripts/components/features/follow_requests/containers/account_authorize_container.jsx26
1 files changed, 0 insertions, 26 deletions
diff --git a/app/assets/javascripts/components/features/follow_requests/containers/account_authorize_container.jsx b/app/assets/javascripts/components/features/follow_requests/containers/account_authorize_container.jsx
deleted file mode 100644
index da1e5eaa1..000000000
--- a/app/assets/javascripts/components/features/follow_requests/containers/account_authorize_container.jsx
+++ /dev/null
@@ -1,26 +0,0 @@
-import { connect } from 'react-redux';
-import { makeGetAccount } from '../../../selectors';
-import AccountAuthorize from '../components/account_authorize';
-import { authorizeFollowRequest, rejectFollowRequest } from '../../../actions/accounts';
-
-const makeMapStateToProps = () => {
-  const getAccount = makeGetAccount();
-
-  const mapStateToProps = (state, props) => ({
-    account: getAccount(state, props.id)
-  });
-
-  return mapStateToProps;
-};
-
-const mapDispatchToProps = (dispatch, { id }) => ({
-  onAuthorize (account) {
-    dispatch(authorizeFollowRequest(id));
-  },
-
-  onReject (account) {
-    dispatch(rejectFollowRequest(id));
-  }
-});
-
-export default connect(makeMapStateToProps, mapDispatchToProps)(AccountAuthorize);