Source code for the custom Mastodon (Glitchsoc) instance on berserker.town.
https://berserker.town/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
484 B
16 lines
484 B
1 year ago
|
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);
|