summaryrefslogtreecommitdiffstats
path: root/front/odiparpack/app/actions/CalendarEventActions.js
diff options
context:
space:
mode:
Diffstat (limited to 'front/odiparpack/app/actions/CalendarEventActions.js')
-rw-r--r--front/odiparpack/app/actions/CalendarEventActions.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/front/odiparpack/app/actions/CalendarEventActions.js b/front/odiparpack/app/actions/CalendarEventActions.js
new file mode 100644
index 0000000..ff4fa43
--- /dev/null
+++ b/front/odiparpack/app/actions/CalendarEventActions.js
@@ -0,0 +1,28 @@
+import * as types from './actionTypes';
+
+export const fetchAction = items => ({
+ type: types.FETCH_CALENDAR_DATA,
+ items,
+});
+
+export const addAction = {
+ type: types.ADD_EVENT
+};
+
+export const discardAction = {
+ type: types.DISCARD_EVENT
+};
+
+export const submitAction = newEvent => ({
+ type: types.SUBMIT_EVENT,
+ newEvent,
+});
+
+export const deleteAction = event => ({
+ type: types.DELETE_EVENT,
+ event,
+});
+
+export const closeNotifAction = {
+ type: types.CLOSE_NOTIF
+};