You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

actions.js 415B

123456789101112131415161718
  1. // @flow
  2. import { NEW_CALENDAR_ENTRY_LIST } from './actionTypes';
  3. /**
  4. * Sends an action to update the current calendar list in redux.
  5. *
  6. * @param {Array<Object>} events - The new list.
  7. * @returns {{
  8. * type: NEW_CALENDAR_ENTRY_LIST,
  9. * events: Array<Object>
  10. * }}
  11. */
  12. export function updateCalendarEntryList(events: Array<Object>) {
  13. return {
  14. type: NEW_CALENDAR_ENTRY_LIST,
  15. events
  16. };
  17. }