diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-08-15 23:24:28 +0300 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 10:05:42 +0200 |
| commit | 91c8088e1d7def9242f60c708cd34f25dcb77d76 (patch) | |
| tree | b68065019692cea5cf6c3d14b811104aff2f0879 /src/actions/projects.js | |
| parent | d7512ace72448242b392299cf459c9c72c8dbee5 (diff) | |
Connect to backend and fetch initial project data
Diffstat (limited to 'src/actions/projects.js')
| -rw-r--r-- | src/actions/projects.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/actions/projects.js b/src/actions/projects.js index 0ab1f820..efbd15e9 100644 --- a/src/actions/projects.js +++ b/src/actions/projects.js @@ -5,42 +5,42 @@ export const ADD_PROJECT = "ADD_PROJECT"; export const DELETE_PROJECT = "DELETE_PROJECT"; export const OPEN_PROJECT = "OPEN_PROJECT"; -export const setAuthVisibilityFilter = (filter) => { +export function setAuthVisibilityFilter(filter) { return { type: SET_AUTH_VISIBILITY_FILTER, filter: filter }; -}; +} -export const openNewProjectModal = () => { +export function openNewProjectModal() { return { type: OPEN_NEW_PROJECT_MODAL }; -}; +} -export const closeNewProjectModal = () => { +export function closeNewProjectModal() { return { type: CLOSE_NEW_PROJECT_MODAL }; -}; +} -export const addProject = (name) => { +export function addProject(name) { return { type: ADD_PROJECT, name }; -}; +} -export const deleteProject = (id) => { +export function deleteProject(id) { return { type: DELETE_PROJECT, id }; -}; +} -export const openProject = (id) => { +export function openProject(id) { return { type: OPEN_PROJECT, id }; -}; +} |
