mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
1e1293e3c8
Port 911cc14481
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
17 lines
538 B
JavaScript
17 lines
538 B
JavaScript
import { connect } from 'react-redux';
|
|
import { makeGetAccount } from 'flavours/glitch/selectors';
|
|
import FollowRequest from '../components/follow_request';
|
|
import { authorizeFollowRequest, rejectFollowRequest } from 'flavours/glitch/actions/accounts';
|
|
|
|
const mapDispatchToProps = (dispatch, { account }) => ({
|
|
onAuthorize () {
|
|
dispatch(authorizeFollowRequest(account.get('id')));
|
|
},
|
|
|
|
onReject () {
|
|
dispatch(rejectFollowRequest(account.get('id')));
|
|
},
|
|
});
|
|
|
|
export default connect(null, mapDispatchToProps)(FollowRequest);
|