List projet + list request
This commit is contained in:
27
frontend/src/actions/project.js
Normal file
27
frontend/src/actions/project.js
Normal file
@ -0,0 +1,27 @@
|
||||
export const PROJECT_USER_LIST = 'PROJECT_USER_LIST';
|
||||
export const PROJECT_USER_LIST_SUCCESS = 'PROJECT_USER_LIST_SUCCESS';
|
||||
export const PROJECT_USER_LIST_FAILURE = 'PROJECT_USER_LIST_FAILURE';
|
||||
|
||||
export function projectUserListRequest() {
|
||||
return { type: PROJECT_USER_LIST}
|
||||
}
|
||||
export function projectUserListSuccess(projects) {
|
||||
return { type: PROJECT_USER_LIST_SUCCESS, projects }
|
||||
}
|
||||
export function projectUserListFailure(error) {
|
||||
return { type: PROJECT_USER_LIST_FAILURE, error }
|
||||
}
|
||||
|
||||
export const PROJECT_LIST = 'PROJECT_LIST';
|
||||
export const PROJECT_LIST_SUCCESS = 'PROJECT_LIST_SUCCESS';
|
||||
export const PROJECT_LIST_FAILURE = 'PROJECT_LIST_FAILURE';
|
||||
|
||||
export function projectList() {
|
||||
return { type: PROJECT_LIST}
|
||||
}
|
||||
export function projectListSuccess(projects) {
|
||||
return { type: PROJECT_LIST_SUCCESS, projects }
|
||||
}
|
||||
export function projectListFailure(error) {
|
||||
return { type: PROJECT_LIST_FAILURE, error }
|
||||
}
|
Reference in New Issue
Block a user