* Add requested_by to relationship maps * Display whether an account has requested to follow you on their profile
15 lines
484 B
JavaScript
15 lines
484 B
JavaScript
import { connect } from 'react-redux';
|
|
import FollowRequestNote from '../components/follow_request_note';
|
|
import { authorizeFollowRequest, rejectFollowRequest } from 'mastodon/actions/accounts';
|
|
|
|
const mapDispatchToProps = (dispatch, { account }) => ({
|
|
onAuthorize () {
|
|
dispatch(authorizeFollowRequest(account.get('id')));
|
|
},
|
|
|
|
onReject () {
|
|
dispatch(rejectFollowRequest(account.get('id')));
|
|
},
|
|
});
|
|
|
|
export default connect(null, mapDispatchToProps)(FollowRequestNote);
|