ManageIQ/manageiq-ui-classic

View on GitHub
app/javascript/miq-redux/redux-router-actions.js

Summary

Maintainability
A
0 mins
Test Coverage
import {
  push,
  replace,
  go,
  goBack,
  goForward,
} from 'connected-react-router';

const createReduxRoutingActions = ({ dispatch }) => ({
  push: where => dispatch(push(where)),
  replace: where => dispatch(replace(where)),
  go: howMany => dispatch(go(howMany)),
  goBack: () => dispatch(goBack()),
  goForward: () => dispatch(goForward()),
});

export default createReduxRoutingActions;