2022-12-16 04:50:11 +11:00
|
|
|
import { connect } from 'react-redux';
|
2023-05-24 01:15:17 +10:00
|
|
|
|
2022-12-16 04:50:11 +11:00
|
|
|
import { authorizeFollowRequest, rejectFollowRequest } from 'mastodon/actions/accounts';
|
|
|
|
|
2023-05-24 01:15:17 +10:00
|
|
|
import FollowRequestNote from '../components/follow_request_note';
|
|
|
|
|
2022-12-16 04:50:11 +11:00
|
|
|
const mapDispatchToProps = (dispatch, { account }) => ({
|
|
|
|
onAuthorize () {
|
|
|
|
dispatch(authorizeFollowRequest(account.get('id')));
|
|
|
|
},
|
|
|
|
|
|
|
|
onReject () {
|
|
|
|
dispatch(rejectFollowRequest(account.get('id')));
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(null, mapDispatchToProps)(FollowRequestNote);
|