Initial commit
This commit is contained in:
27
client/src/actions/actions.js
Normal file
27
client/src/actions/actions.js
Normal file
@@ -0,0 +1,27 @@
|
||||
import ActionTypes from '../constants/ActionTypes';
|
||||
|
||||
/* Events */
|
||||
|
||||
export const fetchActionsRequested = (cardId) => ({
|
||||
type: ActionTypes.ACTIONS_FETCH_REQUESTED,
|
||||
payload: {
|
||||
cardId,
|
||||
},
|
||||
});
|
||||
|
||||
export const fetchActionsSucceeded = (cardId, actions, users) => ({
|
||||
type: ActionTypes.ACTIONS_FETCH_SUCCEEDED,
|
||||
payload: {
|
||||
cardId,
|
||||
actions,
|
||||
users,
|
||||
},
|
||||
});
|
||||
|
||||
export const fetchActionsFailed = (cardId, error) => ({
|
||||
type: ActionTypes.ACTIONS_FETCH_FAILED,
|
||||
payload: {
|
||||
cardId,
|
||||
error,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user