Files
planka/client/src/actions/action.js

25 lines
450 B
JavaScript
Raw Normal View History

2019-08-31 04:07:25 +05:00
import ActionTypes from '../constants/ActionTypes';
/* Events */
export const createActionReceived = action => ({
2019-08-31 04:07:25 +05:00
type: ActionTypes.ACTION_CREATE_RECEIVED,
payload: {
action,
},
});
export const updateActionReceived = action => ({
2019-08-31 04:07:25 +05:00
type: ActionTypes.ACTION_UPDATE_RECEIVED,
payload: {
action,
},
});
export const deleteActionReceived = action => ({
2019-08-31 04:07:25 +05:00
type: ActionTypes.ACTION_DELETE_RECEIVED,
payload: {
action,
},
});