Compare commits

...

3 Commits

Author SHA1 Message Date
GitHub Actions 778153cfc4 New Crowdin translations 2024-04-25 04:27:15 +00:00
Claire 113c931cda
Fix follow request notifications not being displayed (#2695) 2024-04-24 17:00:48 +02:00
Claire b79df709a8
Merge pull request #2693 from glitch-soc/i18n/crowdin/translations
New Crowdin Translations (automated)
2024-04-24 17:00:31 +02:00
3 changed files with 17 additions and 6 deletions

View File

@ -1,17 +1,28 @@
import { connect } from 'react-redux';
import { authorizeFollowRequest, rejectFollowRequest } from 'flavours/glitch/actions/accounts';
import { makeGetAccount } from 'flavours/glitch/selectors';
import FollowRequest from '../components/follow_request';
const mapDispatchToProps = (dispatch, { account }) => ({
const makeMapStateToProps = () => {
const getAccount = makeGetAccount();
const mapStateToProps = (state, props) => ({
account: getAccount(state, props.id),
});
return mapStateToProps;
};
const mapDispatchToProps = (dispatch, { id }) => ({
onAuthorize () {
dispatch(authorizeFollowRequest(account.get('id')));
dispatch(authorizeFollowRequest(id));
},
onReject () {
dispatch(rejectFollowRequest(account.get('id')));
dispatch(rejectFollowRequest(id));
},
});
export default connect(null, mapDispatchToProps)(FollowRequest);
export default connect(makeMapStateToProps, mapDispatchToProps)(FollowRequest);

View File

@ -1 +1 @@
'no':
no:

View File

@ -1 +1 @@
'no':
no: