mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-18 02:28:08 +00:00
[Glitch] Upgrade to react-router v5
Port 1b70d7ed7c to glitch-soc
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
// Package imports.
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
// Our imports.
|
||||
import { mentionCompose } from 'flavours/glitch/actions/compose';
|
||||
import { makeGetNotification } from 'flavours/glitch/selectors';
|
||||
|
||||
@@ -19,8 +17,8 @@ const makeMapStateToProps = () => {
|
||||
};
|
||||
|
||||
const mapDispatchToProps = dispatch => ({
|
||||
onMention: (account, router) => {
|
||||
dispatch(mentionCompose(account, router));
|
||||
onMention: (account, history) => {
|
||||
dispatch(mentionCompose(account, history));
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user