blob: c1530225c441d3d1b5e390c7f12cc2b0fff11352 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import moment from 'moment';
import { applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import makeGetHistory from './getHistory';
export default function makeReduxMiddleware({ history }) {
return applyMiddleware(thunk.withExtraArgument({
getHistory: makeGetHistory(history),
moment,
}));
}
|