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

25 lines
456 B
JavaScript
Raw Normal View History

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