Skip to content

Instantly share code, notes, and snippets.

@iammerrick
Created August 9, 2015 05:52
Show Gist options
  • Save iammerrick/6de32ba74c84b5518ee7 to your computer and use it in GitHub Desktop.
Save iammerrick/6de32ba74c84b5518ee7 to your computer and use it in GitHub Desktop.
import ActionConstants from '../ActionConstants';
import {dispatch} from '../store'
import { bindActionCreators } from 'redux';
export default bindActionCreators({
setCurrentPlan: function (planId) {
return {
type: ActionConstants.SET_CURRENT_PLAN,
payload: {
id: planId
}
};
}
}, dispatch);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment