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