summaryrefslogtreecommitdiffstats
path: root/front/odiparpack/app/actions/CalendarEventActions.js
blob: ff4fa43f8b1c8e88a3a235529397a77091f0ec3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
};