From 67a771cbb02ec9da3c60704901f3150b46a7262b Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Wed, 9 Aug 2017 14:29:14 +0300 Subject: Create basic projects page with add-button --- src/actions/projects.js | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/actions/projects.js (limited to 'src/actions') diff --git a/src/actions/projects.js b/src/actions/projects.js new file mode 100644 index 00000000..57304326 --- /dev/null +++ b/src/actions/projects.js @@ -0,0 +1,38 @@ +export const SET_AUTH_VISIBILITY_FILTER = "SET_AUTH_VISIBILITY_FILTER"; +export const OPEN_NEW_PROJECT_MODAL = "OPEN_NEW_PROJECT_MODAL"; +export const CLOSE_NEW_PROJECT_MODAL = "CLOSE_PROJECT_POPUP"; +export const ADD_PROJECT = "ADD_PROJECT"; +export const DELETE_PROJECT = "DELETE_PROJECT"; + +export const setAuthVisibilityFilter = (filter) => { + return { + type: SET_AUTH_VISIBILITY_FILTER, + filter: filter + }; +}; + +export const openNewProjectModal = () => { + return { + type: OPEN_NEW_PROJECT_MODAL + }; +}; + +export const closeNewProjectModal = () => { + return { + type: CLOSE_NEW_PROJECT_MODAL + }; +}; + +export const addProject = (name) => { + return { + type: ADD_PROJECT, + name + }; +}; + +export const deleteProject = (id) => { + return { + type: DELETE_PROJECT, + id + }; +}; -- cgit v1.2.3